I just upgraded from Xcode 3 to 4. Have been playing around a bit first to get used to the new interface and trying to find where everything has moved to… (pfffff). New projects seem to work fine but it’s definitely a large transition.
Now I tried opening some older projects but something strange happens…
ALL my projects are iPhone projects, none is for OS X but when opened in Xcode 4 it says in the left most pane: 1 target, missing base SDK. In the right pane I see: Mac OS X Application Target, everything in the Targets Section is related to OS X and NOT to iPhone.
I tried adding a target for iPhone, but still the target is missing. I then deleted the OS X target and see in the left pane: 1 target, IOS SDK 4.3 but the “Run” option in Project menu is still disabled.
I also tried this with sample files from tutorials I used in the past (eg Beginning iPhone 3 Development en More iPhone 3 development) but I have the same problem!
1) Shouldn’t Xcode open those Xcode 3 projects just fine ?
2) What can I do to have the “Run” option working again ?
You need to set two Build Settings:
Related to point 1 – if you hard code the SDK version here, then whenever it’s upgraded, you’ll likely get error messages about missing SDKs if the old one is removed