2011-10-14 97 views
0

我正嘗試在我的項目中使用Unrar4iOS框架。我構建了Unrar4iOS項目,將框架的文件夾複製到我的項目中,並將其添加到項目的現有框架中。我有我的框架搜索路徑全部設置。但是當我編譯我得到這個錯誤:iOS:將外部框架添加到我的項目時出錯

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 

你怎麼看?

+0

您是否在Xcode中添加了框架?只需將其複製到項目目錄中並不是正確的方法。 –

+0

當然是的......但正如我所說的,真正解決問題的是升級到XCode 4.2 ... – Alex1987

回答

0

升級到Xcode 4.2並在iOS 5上編譯解決了這個問題......不知道爲什麼......

相關問題