Monday, August 15, 2011

Adrenaline of the day

OK, back from the moon! 


Today I installed XCode 4.2 and iOS 5.0 Beta SDK to my machine but I didn't override the ones on my disk and I installed them on a different location. 
Then, when I was trying to automatically build and deploy the project with my ant script, the build kept failing. And here is the reason: When I installed the new SDK, this somehow changed my build settings and xcodebuild wanted to use 5.0 SDK even though in my project settings there's no mention of 5.0 SDK that I could see. 


I understood this by running xcodebuild -showsdks command from the terminal.  Then to fix this, I ran sudo xcode-select -switch /Developer,  which tells that the configurations under Developer directory is the master. Because this directory contains my development tools which I didn't want to override in the first place).
(Click on the image below for the the commands and the outputs. )




 Anyways, it was quite easy to fix and quite annoying at the same time. I'm writing it down in case someday, someone wants to document all the facts about how Apple is tormenting people all over the world.

No comments:

Post a Comment

.widget { margin-top: 30px; margin-bottom: 30px; }