无法在Xcode 4.2.1中构建openssl

时间:2011-12-13 08:39:41

标签: 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

我能解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

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