I just updated to Xcode 8, and I'm getting a new error whenever I try to use the Simulator. (Any device type in the simulator.) It reads like this...
'[...]/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, Bitcode IS enabled. (And it has to be, as I'm doing Apple Watch stuff.) I've seen other questions on SO with this same error, but there are a few new wrinkles in my version that those don't address:
- It's not some external library or something, it's my AppDelegate.
- Bitcode IS enabled, and has been for the entire development life of this project (9+ months).
- The project builds just fine for a physical device, a "Generic iOS Device", and for Archiving. It's only the Simulator that pops this error.
My assumption is that this is a bug or some sort of false setting in my build rules for how I'm building on the simulator, but I don't know where that would be. I've cleaned, deleted Derived Data, tried multiple simulators, and restarted both Xcode and my computer.
Anyone know what's causing this, and how I might get around it?