wireguard-apple icon indicating copy to clipboard operation
wireguard-apple copied to clipboard

Adding -fembed-bitcode flag to enable bitcode in XCode

Open ponkin opened this issue 2 years ago • 1 comments

"Currently libwg-go.a doesn't support bitcode in the Xcode project. It crashes with the following message:

libwg-go.a does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

Disabling Bitcode for the whole project is very bad for dSYMs and Crashlytics reporting, though"

Full discussion is here

ponkin avatar Jul 05 '22 15:07 ponkin

Just fyi the next Xcode version deprecates bitcode https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes

Starting with Xcode 14, bitcode is no longer required for watchOS and tvOS applications, and the App Store no longer accepts bitcode submissions from Xcode 14. Xcode no longer builds bitcode by default and generates a warning message if a project explicitly enables bitcode: “Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode.” The capability to build with bitcode will be removed in a future Xcode release. IPAs that contain bitcode will have the bitcode stripped before being submitted to the App Store. Debug symbols for past bitcode submissions remain available for download. (86118779)

brinsche avatar Jul 29 '22 14:07 brinsche

Bitcode is deprecated.

zx2c4 avatar Feb 08 '23 01:02 zx2c4