Search code examples
iosxcodemacosxcode4.4build-settings

Xcode 4.4 turned my iOS project into a Mac OS X project! How can I fix this?


I've opened an iOS project - with Xcode 4.4.1 - that I hadn't opened for 2 months (ie with Xcode 4.3). First, Xcode was crashing constantly right after displaying the project navigator saying something like "Failed to associate working tree".

I tried to fix it by removing xcuserdata files and the project.xcworkspace directory as well.

Now, Xcode opens without crashing but in the scheme view, it is shown as a Mac OS X project whereas both the project and the target are correctly set to a "Latest iOS" base SDK.

How can I fix that without having to recreate a project and copy all my source files?

EDIT: i'm using Git with a GitHub remote.


Solution

  • make a new scheme for ios by clicking on the current scheme then "new scheme"