xcode 框架链接错误,找不到图像?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/720162/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Framework linking error, image not found?
提问by cemulate
I'm using DarwiinRemote's WiiRemote.framework in my app.
我在我的应用程序中使用 DarwiinRemote 的 WiiRemote.framework。
I already fixed some issues by downloading the source code and requiring garbage collection, and building for 10.5. However, when I try to add it to my project, I get the console error:
我已经通过下载源代码和要求垃圾收集解决了一些问题,并为 10.5 构建。但是,当我尝试将其添加到我的项目时,出现控制台错误:
dyld: Library not loaded: @executable_path/../Frameworks/WiiRemote.framework/Versions/A/WiiRemote
Referenced from: /Users/chasemeadors/Documents/Apps in development/Animation/build/Debug/Animation.app/Contents/MacOS/Animation
Reason: image not found
I've done some searching on the internet, but they're all framework specific, and not really making much sense to me. So I was hoping someone on here could give a short, sweet, understandable answer?
我在互联网上做了一些搜索,但它们都是特定于框架的,对我来说并没有多大意义。所以我希望这里有人能给出一个简短的、甜蜜的、可以理解的答案?
Download link for the framework: (notemy changes i.e. garbage collection not made) http://sourceforge.net/project/downloading.php?group_id=183966&use_mirror=softlayer&filename=WiiRemoteFramework0.5-src.tar.gz&a=58980345
该框架的下载链接:(注意我的更改,即未进行垃圾收集) http://sourceforge.net/project/downloading.php?group_id=183966&use_mirror=softlayer&filename=WiiRemoteFramework0.5-src.tar.gz&a=58980345
回答by cdespinosa
The framework is apparently expecting that your app will be copying it into the app bundle's Frameworks folder. Create a Copy Files build phase, add the framework to it, and set the destination to the Frameworks directory.
该框架显然希望您的应用程序将其复制到应用程序包的 Frameworks 文件夹中。创建一个 Copy Files 构建阶段,向其中添加框架,并将目标设置为 Frameworks 目录。