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: Xcode 8.3 bitcode_strip can't build with Go Mobile Binding #19861
Comments
same issue. Works on simulator, but not on the real device. |
I face with same issue. Xcode version 8.3.3, golang 1.9. I set Bitcode same @petethepig but still error --> update I down to go 1.8.3, reinit gomobile, build and it work. |
@khoango I managed to fixed that for go 1.8, but I have the same issue for the 1.9 |
Hi, the setting for bitcode is gone in xcode 9! |
Is this a problem still? I regularly run gomobile bind apps from Xcode 9.2. The bitcode setting is not gone. |
It's ok with golang 9.4 and latest gomobile version |
Thank you. |
error: bitcode_strip xxx.framework/Versions/A/Goutils: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip exited with 1 |
This issue is closed. Please open a new issue with detailed instructions to reproduce your error. Also, please make sure bitcode is disabled for your project. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8 darwin/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/honweng/Documents/Code/Go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8s/75c7bbxj0zx0xtlfvv2yc2tr0000gn/T/go-build482274973=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
Followed the instructions on here:
https://github.com/golang/go/wiki/Mobile#building-and-deploying-to-ios-1
Built using Xcode 8.3
What did you expect to see?
A succesful build.
What did you see instead?
Build fails with error:
PBXCp FooBar/Hello.framework /Users/honweng/Library/Developer/Xcode/DerivedData/FooBar-gnwbvbargozrzgaffidrdhuynwab/Build/Products/Debug-iphoneos/FooBar.app/Frameworks/Hello.framework
cd /Users/honweng/Desktop/FooBar
export PATH="/Applications/Xcode8.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode8.3.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude *.tbd -bitcode-strip all -bitcode-strip-tool /Applications/Xcode8.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -resolve-src-symlinks /Users/honweng/Desktop/FooBar/FooBar/Hello.framework /Users/honweng/Library/Developer/Xcode/DerivedData/FooBar-gnwbvbargozrzgaffidrdhuynwab/Build/Products/Debug-iphoneos/FooBar.app/Frameworks
/Applications/Xcode8.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/honweng/Desktop/FooBar/FooBar/Hello.framework/Versions/A/Hello -r -o /Users/honweng/Library/Developer/Xcode/DerivedData/FooBar-gnwbvbargozrzgaffidrdhuynwab/Build/Products/Debug-iphoneos/FooBar.app/Frameworks/Hello.framework/Versions/A/Hello
/Applications/Xcode8.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip: string table not at the end of the file (can't be processed) in file: /Users/honweng/Desktop/FooBar/FooBar/Hello.framework/Versions/A/Hello(go.o) (for architecture armv7)
error: bitcode_strip /Users/honweng/Desktop/FooBar/FooBar/Hello.framework/Versions/A/Hello: /Applications/Xcode8.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip exited with 1
The text was updated successfully, but these errors were encountered: