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?

6
  • Do you have the source to MyoKit? Commented Dec 7, 2015 at 15:58
  • Just go to your project build settings and search for bitcode, and set it to YES Commented Dec 7, 2015 at 16:00
  • @Mr.T there isn't a bitcode option in build settings for Xcode 7.1, that's the problem that I have... Commented Dec 7, 2015 at 16:07
  • No, there is build option available for Xcode 7.1. May be you are looking at wrong place. Commented Dec 7, 2015 at 16:08
  • @Mr.T can you tell me where it is, please? I've been searching in different places and I couldn't find it, and more people on Stackoverflow have the same problem. Thank you! Commented Dec 7, 2015 at 16:09

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

4 Comments

Don't you want to set it to "no" if there are 3rd-party libraries that don't have it enabled?
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
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!
@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...
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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.