I just upgraded to Xcode 8 and I get a new error when I try to use Simulator. (Any type of device in the simulator.) It reads as follows:
'[...]/AppDelegate.o' 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 x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The trick is that the IS bitcode is on. (And that should be, since I'm in the Apple Watch). I saw other SO questions with the same error, but in my version there are several new wrinkles that are not addressed:
- This is not some external library or something else, this is my AppDelegate.
- Bitcode IS is included and has been for the entire life of this project (9 months).
- The project is perfect for the physical device, the "universal iOS device" and for archiving. This is only a simulator that throws this error.
My guess is that this is a mistake or some kind of false setting in my build rules for how I build the simulator, but I don’t know where it will be. I cleaned up, uninstalled Derived Data, tried several simulators and restarted both Xcode and my computer.
Does anyone know what causes this, and how can I get around it?
source
share