-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile: iOS project won't compile with framework built by gomobile #32918
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
Comments
Please provide more concrete steps to reproduce the failure. What commands did you run to compile the project? Which command specifically produced the observed error message? |
Is the problem in Xcode or cc @eliasnaur |
Thanks guys for prompt reply. I created a sample reproduce here https://github.com/ibigbug/SampleGomobile and put the steps in the README file. A bit more information might be helpful, I'm using the latest Xcode beta. and it worked with an older version of gomobile, it compiles, but output of that version of gomobile doesn't have bitcode, so I upgraded to the latest gomobile and see this issue. |
@ibigbug, this issue has the |
I believe this is linked to golang/mobile@9487ef5 You can either:
|
thanks @steeve Using go1.13beta is and manually passing Though I'm building c-archive directly via |
I'm trying to switch back to standard I tried:
Can someone point me to a way to upgrade go version for gomoible? Found similar one #24389 |
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?
I created a go package and used gomobile to bind it for iOS:
And then referenced the framework in my iOS project
Then complied the iOS project
What did you expect to see?
The project should compile
What did you see instead?
error messge
ld: in /PATH_TO_THE_FRAMEWORK(go.o), building for iOS, but linking in object file (/PATH_TO_THE_FRAMEWORK(go.o)) built for , for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: