[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-05-15 Thread constantine
I ran this command: brew install go --*HEAD* Now Xcode compiles without an error and ENABLE_BITCODE=YES On Tuesday, May 14, 2019 at 9:18:12 PM UTC-7, Tristian Azuara wrote: > > Hi!, > > gomobile does not produce BITCODE enabled frameworks, (AFAIK) you have to > set the XCode

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-05-14 Thread Tristian Azuara
Hi!, gomobile does not produce BITCODE enabled frameworks, (AFAIK) you have to set the XCode `ENABLE_BITCODE` build setting to `NO`, `gomobile` (the latest version) automatically adds the `-fembed-bitcode` as C flag, here you can find a better explanation of it: *

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-05-14 Thread constantine
When I compile with: gomobile bind -target=ios -tags="ios" -v mygomobileios and importing the generated Mygomobileios.framework I get an error: ld: '/mygo/src/mygomobileios/gomobileios_test/Mygomobileios.framework/Mygomobileios(go.o)' does not contain bitcode. You must rebuild it with

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-04-01 Thread mail
On Monday, April 1, 2019 at 6:30:23 PM UTC+2, Tristian Azuara wrote: > > Hi Elias, thank you for the quick reply, I see, you're correct it does > support the archs for ios, I had not tried it for ios, because the > documentation just mentions that you can specify specific instruction sets >

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-04-01 Thread Tristian Azuara
Hi Elias, thank you for the quick reply, I see, you're correct it does support the archs for ios, I had not tried it for ios, because the documentation just mentions that you can specify specific instruction sets when binding for android: $ gomobile bind --help By default, -target=android

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-04-01 Thread mail
Hi, The -target flag does support architectures. Have you tried -target ios/amd64,ios/arm64,ios/arm from your example? I'm not sure I understand the problem with bitcode and macOS; what is the error you get from -fembed-bitcode? - elias On Monday, April 1, 2019 at 6:32:35 AM UTC+2,