LoginSignup
10
11

More than 5 years have passed since last update.

Objective-CのプロジェクトにSwift製のFrameworkを追加する時にハマった

Last updated at Posted at 2016-05-13

事象

実行時以下のようなエラーが出てアボートする。

dyld: Library not loaded: @rpath/FrameworkName.framework/FrameworkName
Referenced from: /private/var/mobile/Containers/Bundle/Application/69EA2831-DBCA-46AB-871E-229147E6B7DC/AppName.app/AppName
Reason: image not found

調査

調べてみると
[Build Options] - [Embedded Content Contains Swift Code] を YES にすればいいらしい。
しかし、設定してみても状況は変わらず。

解決策

もう少し調べてみたところ [General] - [Embedded Binaries] に .framework を追加することで解決出来た。

10
11
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
10
11