XTLS / libXray

MIT License
64 stars 57 forks source link

XcodeDefault.xctoolchain/usr/bin/bitcode_strip exited with 1 #4

Closed houmie closed 1 year ago

houmie commented 1 year ago

After compiling this for apple:

bash build.sh apple

and adding LibXray.xcframework to my project, I can no longer build it.

I get this error:

/Users/houmie/Projects/libXray/LibXray.xcframework/ios-arm64/LibXray.framework bitcode_strip /Users/houmie/Projects/libXray/LibXray.xcframework/ios-arm64/LibXray.framework/Versions/A/LibXray: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip exited with 1

The only way to circumvent it is to 1) Add this in User Settings: STRIP_BITCODE_FROM_COPIED_FILES=NO 2) In Frameworks and Libraries change Embed & Sign to Embed Without Signing.

Is this intended like this?

ghost commented 1 year ago

bitcode is deprecated.

Make sure using the latest Xcode version.

houmie commented 1 year ago

Hello @yiguous

Yes, I know Bitcode is deprecated. I don't want to use Bitcode.

I have the latest Xcode version 14.3.1 (14E300c)

Thanks

houmie commented 1 year ago

@yiguous

Well, it seems that your build.sh script has Bitcode enabled. You should remove it.

ghost commented 1 year ago

I use all default configurations of gomobile, you can check them.

Maybe you can send your feedback to gomobile team.

mishamoix commented 11 months ago

@houmie Have you figured out how to solve it?