LoginSignup
0
1

More than 3 years have passed since last update.

iOSアプリ開発:実機にアプリ転送出来ない

Last updated at Posted at 2016-10-16

※個人で管理しているHPに引っ越ししました。
リンク切れ等考慮して本ページは残しておきますが、今後はHPのほうで更新します。

現象

シミュレータで動作確認は出来ました。
実機に転送しようと実行してみたところ下記のようなエラーが出ました。

Ld /Users/〜/Build/Products/Debug-iphoneos/App.app/app normal arm64
cd /Users/test/app
export IPHONEOS_DEPLOYMENT_TARGET=5.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/〜/Build/Products/Debug-iphoneos -F/Users/〜/Build/Products/Debug-iphoneos -filelist /Users/〜/Build/Intermediates/app.build/Debug-iphoneos/app.build/Objects-normal/arm64/app.LinkFileList -miphoneos-version-min=5.0 -dead_strip -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -framework GLKit -framework OpenGLES -framework AudioToolbox -framework OpenAL -Xlinker -dependency_info -Xlinker /Users/〜/Build/Intermediates/app.build/Debug-iphoneos/app.build/Objects-normal/arm64/app_dependency_info.dat -o /Users/〜/Build/Products/Debug-iphoneos/App.app/app

clang: error: -fembed-bitcode is not supported on versions of iOS prior to 6.0

調査

Xcode->プロジェクトファイル->General->Deployment InfoのDeployment Infoが5.0になっていた。

対応

調査で見た、Xcode->プロジェクトファイル->General->Deployment InfoのDeployment Infoを7.0に変更。
すると、実機に転送時にエラーが出なくなりました。
古いXcodeプロジェクトだったので、デフォルト5.0だったようです。

0
1
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
0
1