6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

自作Frameworkをプロジェクトに含め、直接実行する場合の設定(Runpath Search Paths)

Last updated at Posted at 2015-03-09

自作Frameworkをプロジェクトに含めた時、
デバッグ実行は問題ないけど、直接実行した際に以下のようなエラーとなることがある。

Dyld Error Message:
  Library not loaded: @rpath/MyLibrary.framework/Versions/A/MyLibrary
dyld: Library not loaded: @rpath/MyLibrary.framework/Versions/A/MyLibrary

こういった場合、プロジェクト設定の「Build Settings」-「Linking」-「Runpath Search Paths」を追加すればいい。

Cocoa Application なら
@executable_path/../../..

Command Line Tools なら
@executable_path

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?