LoginSignup
0
1

More than 3 years have passed since last update.

自作したライブラリのDemoプロジェクトが実機でビルドできない件

Posted at

タイトルの通り、iOSのライブラリを自作したがDemoプロジェクトがシュミレータではビルドできるが実機ではビルドできなかった。
構成はこんな感じ

スクリーンショット 2020-06-14 23.13.53.png

原因

frameworkがシュミレータしか対応しておらず、Build PhasesのCopy File phaseからframeworkを実機用にコピーする必要があった。(正直あんまわかってない)

対応

DemoのBuild PhasesからCopy File phaseを選択。
スクリーンショット_2020-06-14_23_20_10.png

追加したCopy File phaseCompile Sourcesの上に移動
スクリーンショット 2020-06-14 23.22.57.png

Destinatioをframeworksに指定して、対象のframeworkを追加
スクリーンショット 2020-06-14 23.23.06.png

で無事にできた!

参考

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