Bitcode error in Xcode 8, but only for Simulator

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?

+4
source share
1 answer

I don’t know, maybe this will solve it, but in our project with the extension "Watch" we have an application in which the bit code is disabled and enabled for other purposes.

And for the main purpose of the application, we have a valid architecture installed by arm_7 / s arm64.

Hope this helps a bit.

-1

Source: https://habr.com/ru/post/1654799/


All Articles