简体   繁体   中英

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.

通过点击当前方案然后“新方案”为ios制定新方案

Roll back using version control. If you post which version control system you are using, somebody will be able to give you the specific command to use.

I had a similar problem with all my Xcode projects. Every iOS project got turned into an OS X project without me changing any settings. A reinstallation of Xcode fixed it for me.

只需在目标的Build Settings中将Root SDK设置为iOS即可

SDKROOT = iphoneos

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM