-
Notifications
You must be signed in to change notification settings - Fork 18k
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: gomobie bind go1.18 package, the api is suspend ... #59020
Comments
Could you clarify what you mean by "all apis will suspend in a xcode project"? Does it fail to build? Fail to run? How do you build or run it in an Xcode project? Thanks. |
i can build a macos xcframework with the latest gomobile, and import to a macos project. gomobile bind -ldflags="-w -s" -work -target=macos 1.18,call go api,program will get stuck |
note we no longer support 1.17 or 1.18 |
go 1.20, the error still exist |
Thanks. How do you run the program? On an iOS device? On a simulator? Device connected to Xcode? |
no, i run a macos program, not a ios program.
and, the gomobile is also support macos target
if i set target with ios, and i debug with a ios project, erverything is fine |
-_- |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
gomobile latest version, git hash: e0f5769
xcode: 14.1
macOS: 13.1
gomobile bind -ldflags="-w -s" -work -target=macos
it can build a framework, but if it is bind a go package with go.mod version 1.17, the framework no problem,
if it build a go package with go.mod version 1.18, and then all apis will suspend in a xcode project
go 1.17, no problem
go 1.18 and above, all api is suspend
The text was updated successfully, but these errors were encountered: