LoginSignup
6
6

More than 5 years have passed since last update.

cordovaでiOSアプリをビルドした際に、bitcodeのエラーが出た場合のメモ

Last updated at Posted at 2015-10-06

問題

cordovaでiOSアプリをビルドした際に下記のエラーが発生した。

ld: '/Users/XXX/platforms/ios/hogehoge/Plugins/cordova-plugin-google-analytics/libGoogleAnalyticsServices.a(TAGHit.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 armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **


The following build commands failed:
    Ld build/device/hogehoge.app/hogehoge normal armv7

原因

Xcode6.x以前で作成されたプロジェクトファイルを、Xcode7.xでビルドする。
その際にライブラリ(上記だとcordova-plugin-google-analytics)を使用している場合、エラーとなることがあるようです。

◎参考

Xcode7でbitcodeのエラーが出た

解決策

PROJECT > Build Options > Enable Bitcode をNOに設定する。
スクリーンショット 2015-10-06 11.55.57.png

6
6
0

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
6
6