biasedbit/curl-ios-build-scripts

x86_64 for simulator

ZhiXinXu opened this issue · 2 comments

Xcode 7.2.1 can't find x86_64 architecture (iOS simulator) in libcurl.a. It seems the latest XCode ignores i386...

Would you like to add x86_64 support?

Thanks a lot.

I just tried this and it seems to work:

$ ./build_curl --archs x86_64 --osx-sdk-version none

[PREPARE] INFO - Using Xcode at '/Applications/Xcode.app/Contents/Developer'...
[PREPARE] INFO - Setting up work directory...
[PREPARE] INFO - Downloading archive for libcurl version 7.47.1
[PREPARE] INFO - Archive downloaded, expanding...
[PREPARE] INFO - Archive expanded.
[COMPILE] INFO - Attempting to compile for architectures: x86_64...
[COMPILE] INFO - Building libcurl 7.47.1 for iPhoneSimulator 9.3 (x86_64)...
[PACKAGE] INFO - Packing binaries for architectures 'x86_64-apple-darwin'...
[PACKAGE] INFO - Creating binary for architecture x86_64-apple-darwin (ios-dev)...
[ BUILD ] INFO - Build complete with output binaries: ios-dev (x86_64-apple-darwin)
[ BUILD ] INFO - Output can be found on the 'curl' folder
[ CLEAN ] INFO - Cleaning up...

In addition to tsznober comment, I also changed sdk_version: "9.13" to "15.0" in curl_builder.rb. Similar with my iPhoneOS version according to iPhoneOS15.0.sdk in "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs" folder.