5

I don't have much to go on... XCode 4 is hanging at startup with "Loading Project". My build fails but I can't access the errors. This is happening with a project that worked in a previous version of XCode. It also happens for new projects.

Kara
  • 6,115
  • 16
  • 50
  • 57
Jon Lorusso
  • 458
  • 1
  • 7
  • 19
  • I've managed to find the build errors (using the 'issues' window), but I still can't figure out why the project won't fully load. – Jon Lorusso Apr 06 '11 at 13:33
  • Check out this answer: http://stackoverflow.com/a/9936904/836407. It worked for me. – chown Nov 15 '12 at 15:42

4 Answers4

10

I had a simliar issue. I deleted project.xcworkspace and xcuserdata inside the .xcodeproj directory and I was able to open the project file.

Ben Dolman
  • 3,165
  • 3
  • 25
  • 25
  • This also fixes the issue for me, but I have to perform that same delete operation on those two files each time I restart the computer. Anyway we can stop this from reoccurring? – Eternal Rubyist Jul 15 '12 at 02:46
0

I had a similar issue which ended up being caused by a folder named "~" in my application resources directory. Deleting this directory resolved the hang.

manylegged
  • 794
  • 7
  • 14
0

Having the same issue at the moment, it was after pressing Continue a bunch of times on some internal logic errors. I think the .xcodeproj file is corrupted. Are you sure it won't even work on new projects?

My solution would be to delete it and create a new one, re-add all of the dependencies, build settings and existing source/resources, and then restart Xcode and try opening the project again. It should work this time. It has for me anyway.

Another issue could be if you're creating a new project on network storage and then it's somehow not loading all of the associated files because of a network error. Try moving the files to local storage if this is the case.

-1

I had the same issue, Xcode 4, after trying to add a framework and Xcode added everything under Xcode.app. It did not hang with the processing gear forever probably because my computer uses an SSD drive. After many minutes of the spinning gear, it was loaded and I removed the 'Reference' (right mouse click).