Unable to build openssl in Xcode 4.2.1

2019-09-16 13:44发布

I could build openssl in xcode 3.5.2, but recently I upgraded to Xcode 4.2.1. Now when I try to build in the same old Xcode, I'm getting errors.

Make[1]: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2: No such file or directory

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

Can I have a solution for this?

1条回答
贼婆χ
2楼-- · 2019-09-16 14:19

I found the solution for XCode 4. You need to change in "Build Phases" the text $PLATFORM_DEVELOPER_BIN_DIR/gcc-4.2 to $PLATFORM_DEVELOPER_BIN_DIR/gcc. Good luck.

查看更多
登录 后发表回答