golang/go
View on GitHubx/mobile: iOS project won't compile with framework built by gomobile
Open
#32,918 opened on Jul 3, 2019
NeedsInvestigationhelp wantedmobile
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
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)?
What did you do?
I created a go package and used gomobile to bind it for iOS:
gomobile bind -v -target=ios mypackage
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)