Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile/bind: support macOS framework #31258

Closed
alalamav opened this issue Apr 4, 2019 · 5 comments
Closed

x/mobile/bind: support macOS framework #31258

alalamav opened this issue Apr 4, 2019 · 5 comments
Labels
FrozenDueToAge help wanted mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Milestone

Comments

@alalamav
Copy link

alalamav commented Apr 4, 2019

gomobile bind can support building macOS frameworks by simply changing the build environment configuration. As a proof of concept, I replaced the iOS simulator SDK with the macOS SDK in this commit. I have successfully integrated the resulting framework into a macOS Xcode project.

I propose allowing macos as a build target for bind, with 386 and x86_64 as supported architectures. This can be accomplished by passing the command (ie. build|bind) to parseBuildTarget and buildEnvInit.

Please let me know if you are open to this proposal, or if you need more details. I'm happy to implement it with your guidance.

Related: #13310

@gopherbot gopherbot added this to the Unreleased milestone Apr 4, 2019
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Apr 4, 2019
@andybons andybons added OS-Darwin help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Apr 4, 2019
@alalamav
Copy link
Author

Friendly ping - is there anything I can do to move this forward?

@chinsyo
Copy link

chinsyo commented Sep 1, 2020

Any progress?

@euskadi31
Copy link

Any update?

@popescu-af
Copy link

Latest version supports this, I did a test a minute ago. Just install the latest version of gomobile by running
go install golang.org/x/mobile/cmd/gomobile@latest

then in your project
go mod download golang.org/x/mobile && gomobile init

Then run gomobile bind -target macos -o frameworkname.xcframework github.com/user/package,
assuming that your repo is at github.com/user/package.

@changkun
Copy link
Member

This is supported since #47212 was resolved.

@golang golang locked and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge help wanted mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Projects
None yet
Development

No branches or pull requests

7 participants