From the Xcode 14 Beta 3 release notes:
Deprecations
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)
This was raised in #2396 but we can't use those changes because the apollo-ios project uses xcconfig files.
I've done some reading and I'm still confused about how to resolve this. We currently enable bitcode with the following build setting
// Enable Bitcode only for actual devices, not for macOS or simulators
ENABLE_BITCODE[sdk=watchos*][config=Release] = YES
ENABLE_BITCODE[sdk=iphoneos*][config=Release] = YES
ENABLE_BITCODE[sdk=appletvos*][config=Release] = YES
We could target the Xcode 14 SDKs to explicitly disable bitcode but I don't think that's necessary because my take on the deprecation notice is that the default to build bitcode will be NO in Xcode 14. So then the question remains how do we enable it for older Xcode versions to still build with Xcode? From what I've read I think the xcconfig conditional values need to either target a specific version iphoneos15.5 or everything iphoneos*; I don't think we can lump versions together, eg: iphoneos<=15.5.
I don't have Xcode 14 yet for further testing but I will come back to this soon. I've created this issue so we don't ignore the deprecation.
From the Xcode 14 Beta 3 release notes:
This was raised in #2396 but we can't use those changes because the apollo-ios project uses xcconfig files.
I've done some reading and I'm still confused about how to resolve this. We currently enable bitcode with the following build setting
We could target the Xcode 14 SDKs to explicitly disable bitcode but I don't think that's necessary because my take on the deprecation notice is that the default to build bitcode will be NO in Xcode 14. So then the question remains how do we enable it for older Xcode versions to still build with Xcode? From what I've read I think the xcconfig conditional values need to either target a specific version
iphoneos15.5or everythingiphoneos*; I don't think we can lump versions together, eg:iphoneos<=15.5.I don't have Xcode 14 yet for further testing but I will come back to this soon. I've created this issue so we don't ignore the deprecation.