应用程序引用框架外的应用程序包 [英] App references framework outside of app bundle
问题描述
我对Mac应用程式使用 Restkit 。我可以从Xcode运行应用程序,但当我存档的应用程序,并启动 .app
包我得到以下错误:
I am using Restkit for a Mac app. I can run the App from Xcode, but when I Archive the app and start the .app
bundle I get the following error:
Dyld Error Message:
Library not loaded: /Library/Frameworks/RestKit.framework/Versions/A/RestKit
Referenced from: /Users/USER/Desktop/*/MyApp.app/Contents/MacOS/MyApp
Reason: image not found
框架 Restkit.framework
是我项目中的Restkit项目依赖项的产物。我也使用另一个框架 Sparkle.framework
,我也复制到 .app
包,并且正确引用。
The framework Restkit.framework
is a product of the Restkit project dependency within my project. I am also using another framework Sparkle.framework
which I also copy to the .app
bundle and which is referenced correctly.
我必须在我的项目中更改, MyApp
不通过<$ c $引用框架c> / Library / Frameworks /...而是使用应用程序包中的框架,如 Sparkle.framework
。
What do I have to change in my project, that MyApp
does not reference the framework via /Library/Frameworks/...
but rather use the framework from the app bundle like the Sparkle.framework
.
我使用Restkit在提交 c19a500
I am using Restkit at commit c19a500
推荐答案
经过几个小时的调查后,我终于找出了问题。我的case的问题是框架安装目录
路径:
坏(结果在 Library / Frameworks
):
INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks
好:
INSTALL_PATH = "@executable_path/../Frameworks";
BTW:我在 Growl Xcode项目
这篇关于应用程序引用框架外的应用程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!