iOS:向我的项目添加外部框架时出错

时间:2011-10-14 21:29:16

标签: iphone ios xcode frameworks

我正在尝试在我的项目中使用Unrar4iOS框架。我构建了Unrar4iOS项目,将框架的文件夹复制到我的项目中,并将其添加到项目的现有框架中。我的框架搜索路径全部设置完毕。但是当我编译时,我得到了这个错误:

 cd /Users/alex/Documents/iphone/production/iphone/myapp
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/

ld: framework not found Unrar4iOS
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1

您怎么看?

1 个答案:

答案 0 :(得分:0)

升级到Xcode 4.2并在iOS 5上构建解决了这个问题...不知道为什么......