Ios 无法在Xcode 4.2.1中构建openssl

Ios 无法在Xcode 4.2.1中构建openssl,ios,xcode,openssl,xcode4.2,gcc4,Ios,Xcode,Openssl,Xcode4.2,Gcc4,我可以在xcode 3.5.2中构建openssl,但最近我升级到了xcode 4.2.1。现在,当我尝试在相同的旧Xcode中构建时,我得到了错误 Make[1]:/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2:没有这样的文件或目录 Cp: libcrypto.a: No such file or directory Cp: libssl.a: No such file or directory 我能找到解决方

我可以在xcode 3.5.2中构建openssl,但最近我升级到了xcode 4.2.1。现在,当我尝试在相同的旧Xcode中构建时,我得到了错误

Make[1]:/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2:没有这样的文件或目录

Cp: libcrypto.a: No such file or directory
Cp: libssl.a: No such file or directory

我能找到解决方案吗?

我找到了XCode 4的解决方案。您需要在“构建阶段”将文本
$PLATFORM\u DEVELOPER\u BIN\u DIR/gcc-4.2
更改为
$PLATFORM\u DEVELOPER\u BIN\u DIR/gcc
。祝你好运。

你为静态库设置了“标题搜索路径”吗?没有,但错误在GCC 4.2中。。我们如何解决这个问题?请尝试将$(SRCROOT)添加到标头搜索路径。同时检查递归勾选框。嗨,Vin,我在哪里可以找到递归勾选框?嗨,Chadwick,Jabbaezga,你能简短一点吗,因为即使从gcc-4.2更改为gcc,我也会遇到同样的错误?