开发者

XCode 4 Unable to Open Old Projects

I just upgraded to XCode 4 and am now unable to view a number of my previous XCode 3 proje开发者_JAVA百科cts. When I launch the projects XCode opens, but it looks like this:

XCode 4 Unable to Open Old Projects

Any way to tell what is going wrong? Any special logs I can look at? I don't get any warnings or errors appearing!


Had the same problem, resolved:

Right click your project's .xcodeproj file -> 'Show Package Contents' -> delete project.xcworkspace . The workspace file will be automatically recreated when you open the project again.

The alternative solution is to create a new workspace (File -> New -> Workspace) and add your project to it (File -> Add Files to "New Workspace"). Essentially the same thing.

Not sure why the workspace file gets out of sync as I didn't go through any Xcode version changes, but I suspect it was related to git commits. Didn't use .gitignore.


More info on xcworkspace:

project.xcworkspace saves your workspace settings (Navigator/Debug/Utilities panes,etc) and Editor states. It's automatically created when you create a new project.

From a forum - "When you open an xcworkspace file, it opens the associated Xcode project and restores the perspective. Therefore, Xcode workspace files (.xcworkspace) can be used as a wrapper or container for an Xcode project (.xcodeproj)."


The solution was to delete the local project files and re-clone from the GIT repository. Not sure what the issue is, but it may have been related to having opened the project in XCode 4 Developer Preview.


Just cleanup old preferences files from "your_project..xcodeproj" bundle. In file exlorer right click on "your_project..xcodeproj" -> select Show Package Contents, and remove all files but "project.pbxproj". Best regards.


I had the same problem with the zxing ScanTest app. Upgrading to Xcode 4.3.2 solved the issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜