2

I'm having this error in XCode 7.1 when building the application for iOS9: (...) MyoKit(TLMHub.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 arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

When building the application for the simulation, it works.

I've been searching and I can't find an option to enable bitcode. Any ideas?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Mark
  • 113
  • 7

2 Answers2

2

In project Navigator, select your project:

enter image description here

And then Select your project,click on build settings, and search for bitcode,and set BitCode to YES.

enter image description here

Make sure you click on All option instead of Basic.

Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
  • Don't you want to set it to "no" if there are 3rd-party libraries that don't have it enabled? – trojanfoe Dec 07 '15 at 16:14
  • I will set it to NO for my project targets, if it isnt needed. Is there any other place do I need to taken care of @trojanfoe – Teja Nandamuri Dec 07 '15 at 16:20
  • that was the problem. You need All option selected. Thank you very much! I tried to upvote your answer but I don't have enough reputation. Thx! – Mark Dec 07 '15 at 16:21
  • @Mr.T I don't think so, no. The real issue, of course, is if you use one 3rd-party library with it enabled. and another with it disabled. Then you are stuck until you can get hold of compatible versions. Apple do love to make our lives difficult... – trojanfoe Dec 07 '15 at 16:22
0

The issue is MyoKit is not compiled with Bitcode enabled. Unfortunately until that SDK supports Bitcode, you'll have to disable it for your project.

Mark
  • 7,167
  • 4
  • 44
  • 68