Reputation: 38012
I just upgraded to XCode 4 and am now unable to view a number of my previous XCode 3 projects. When I launch the projects XCode opens, but it looks like this:
Any way to tell what is going wrong? Any special logs I can look at? I don't get any warnings or errors appearing!
Upvotes: 3
Views: 4214
Reputation: 481
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.
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)."
Upvotes: 7
Reputation: 3838
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.
Upvotes: 1
Reputation: 649
I had the same problem with the zxing ScanTest app. Upgrading to Xcode 4.3.2 solved the issue.
Upvotes: 0
Reputation: 38012
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.
Upvotes: 1