命令/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2失败,退出代码为1

时间:2011-10-27 02:39:48

标签: objective-c ios xcode ios5 llvm-gcc

对于iOS 5.0,我的XCode版本是4.2。我选择“LLVM GCC 4.2”作为编译器。当我编译我的项目时,它显示以下错误:

ld: warning: directory not found for option '-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/gcc/arm-apple-darwin10/4.0.1'
ld: warning: directory not found for option '-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1'
ld: library not found for -lz.1.2.3
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

请帮我弄清楚为什么会这样,以及如何解决它。

Image

1 个答案:

答案 0 :(得分:1)

libz.1.2.3库不再存在(或者至少不包含在SDK中)。在项目设置中,链接到较新版本的库,如libz.1.2.5。