biasedbit/curl-ios-build-scripts

Add xcode-select to README

nrj opened this issue · 4 comments

nrj commented

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.

Do you have Xcode 5 installed by any chance?

nrj commented

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

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

897b54a 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

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