-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
ios/arm64 executable: must specify a minimum supported OS version. #43371
Comments
cc @cherrymui |
Have you considered using the If you’re using |
Change https://golang.org/cl/280313 mentions this issue: |
@enty8080 does CL 280313 linked above work for you? |
@dmitshur |
@eliasnaur Yes, when this (https://golang.org/cl/280313) will be added? |
@eliasnaur @dmitshur @cherrymui Also look at this please #43378 |
Go is in a freeze for Go 1.16, so it's up to the release team to decide whether something like CL 280313 should go in 1.16 or 1.17. |
@eliasnaur Also I faced this error:
Solution from #43343 not works for me. For |
See https://tip.golang.org/misc/ios/README . Does it work with |
@cherrymui yes it compiles successfully with this clangwrap. Thanks. But there is another problem with MH_EXECUTE
|
@enty8080 What platform you are targeting, arm64 or amd64? How do you run the binary? Does the output binary has an LC_VERSION_MIN_IPHONEOS load command? (you can see it by running |
@cherrymui Sorry, I tested old binary. Now it works fine. Thanks. NOTE: On iOS device before running executable you should |
@cherrymui Close issue? |
@enty8080 thanks for confirming! Yeah, we can close this. I'll see if I can make it better documented.
@eliasnaur do you think there is anything actionable for Go about this? Thanks. |
@cherrymui, would you like to review https://go-review.googlesource.com/c/go/+/280313/? Porbably not for Go 1.16, but good for when GOOS=ios can produce working internally linked binaries. |
Is it better/easier to document this somewhere, or update the As far as I can tell, the main purpose of |
@dmitshur gomobile can produce mobile applications with So I think it's a mistake to consider EDIT: It is true that |
@eliasnaur Thanks. I've edited my comment above to clarify it's specifically about gomobile's |
Done. Yeah, it will be needed when we enable internal linking for ios. |
Change https://golang.org/cl/280154 mentions this issue: |
Change https://golang.org/cl/280153 mentions this issue: |
Updates #43371, #43343. Change-Id: I19386269245f2c20345c6cac7560089b8223e9f9 Reviewed-on: https://go-review.googlesource.com/c/go/+/280153 Trust: Cherry Zhang <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Updates #43371, #43343. Change-Id: Ib89b809a5220717507272453ea86224d1928dd36 Reviewed-on: https://go-review.googlesource.com/c/go/+/280154 Trust: Cherry Zhang <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
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?
On my Mac:
What did you expect to see?
I expected to executable successfully executed in my jailbroken iOS terminal.
What did you see instead?
On my iOS device:
iOS: 13.3.3 (arm64)
macOS: Big Sur
The text was updated successfully, but these errors were encountered: