You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
write /var/folders/fs/1m2nwwm11zn56pfvxrhqwvf00000gn/T/gomobile-work-716664106/src/go.mod
go: downloading golang.org/x/mobile v0.0.0-20200801112145-973feb4309de
go: found wsen.me/test in wsen.me/test v0.0.0-00010101000000-000000000000
golang.org/x/mobile/bind/java
runtime/cgo
go build runtime/cgo: invalid flag in go:cgo_ldflag: -fembed-bitcode
gomobile: darwin-arm64: go build -tags ios -v -buildmode=c-archive -o /var/folders/fs/1m2nwwm11zn56pfvxrhqwvf00000gn/T/gomobile-work-716664106/gomobilebitcode-arm64.a ./gobind failed: exit status 1
If I remove line:163 in source file golang.org/x/mobile/cmd/gomobile/env.go: cflags += " -fembed-bitcode", and rebuild gomobile, then try again, it's working properly.
What did you expect to see?
Successfull build iOS library from golang sources without embed-bitcode errror.
What did you see instead?
No
The text was updated successfully, but these errors were encountered:
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 bind -v -target=ios/arm64,ios/amd64 .
to build iOS target library;If I remove line:163 in source file golang.org/x/mobile/cmd/gomobile/env.go:
cflags += " -fembed-bitcode"
, and rebuild gomobile, then try again, it's working properly.What did you expect to see?
Successfull build iOS library from golang sources without embed-bitcode errror.
What did you see instead?
No
The text was updated successfully, but these errors were encountered: