biasedbit / curl-ios-build-scripts

Build libcurl with HTTP(S)-only support to use on iOS and OSX development
http://biasedbit.com/
185 stars 69 forks source link

Add xcode-select to README #18

Closed nrj closed 11 years ago

nrj commented 11 years ago

I was originally getting these errors when trying to build for armv7/armv7s: error: C compiler cannot create executables even though I have the Xcode command line tools installed. I solved the issue by running:

$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Putting this here to help others who may run into the issue. Perhaps this could be added to the README.

biasedbit commented 11 years ago

Do you have Xcode 5 installed by any chance?

nrj commented 11 years ago

Yes I do have Xcode 5 installed. It's possible that changed some environment var, which is all I think that xcode-select does...

biasedbit commented 11 years ago

Yep, when you install Xcode 5, it changes the default command line tools it uses.

897b54a2f3009f763168852566a83104b2891062 should make it work nicely both with Xcode 4 and 5. Lemme know how it works for you and if it does, go ahead and close this.

Cheers.

nrj commented 11 years ago

Switched my command line tools back to Xcode5-DP and build_curl ran just fine. Thanks!