LoginSignup
2

More than 5 years have passed since last update.

Xcode7.0にしたらYou must rebuild it with bitcode enabledで怒られた

Posted at

Xcode7.0にてアプリを実機でビルドしようとしたところ以下のエラーが出てビルドに失敗した。

ld: '/Users/kazuhiro/Library/Developer/Xcode/DerivedData/HelloWorld-dwlrfcbnvejmrzelysrjowhnukpx/Build/Products/Debug-iphoneos/libcocos2d iOS.a(ftbase.ios8_arm64.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)

解決方法

iOS9から追加されておりデフォルト有効なのでBuld settingのEnable bitcodeを無効にしたことで問題なく起動できました。

スクリーンショット 2015-10-18 0.38.44.png

LLVMビットコードとは

LLVMビットコードはJavaでいう中間コードに相当するものであり、それぞれのプラットフォームに依存しない言語で書かれているもの

今後AppleWatchなどのウェアラブル端末などアーキテクチャが変わっても提供元がデベロッパーによるバイナリの再提出しなくてもよい仕組みのようですね。

そういえばこないだ行った勉強会でwatch0S向けの話でbitcodeの話出てきたけど、Xcode6.4を使い続けてたので特に気にしてなかった

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2