When I try to open a specific project with XCode, it hangs. When it hangs, it shows the following screen:
Other projects can open fine, although the project that hangs opens too, meaning I can't do anything. My CPU is running at full speed (the fan starts going), and I have to quit multiple processes named "Interface Builder Cocoa Touch Tool."
I've tried...
rm -rf ~/Libraries/Autosave Information
rm -rf /Users/scott/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Developer/XCode/UROPv6/UROPv6.xcodeproj/xcuserdata
rm -rf ~/Library/caches/com.apple.dt.Xcode
I can't open the XCode preferences - UROPv6 (the project that hangs) always opens, so all of those options are thrown out the window.
The app that hangs is an iOS project. I've looked at this blog post, but I am using *.storyboard
, not *.xib
.
Since none of the above methods worked, I think I have some file in my project that's causing this. How do I open the project?
For the full error log when XCode crashes, see this gist.
rm -rf ~/Developer/XCode/UROPv6/Reconstruct.xcodeproj/project.xcworkspace/xcuserdata
worked. When I tried to run git checkout 0ea13d
, it said `error:
Your local changes to the following files would be overwritten by checkout:
Reconstruct.xcodeproj/project.xcworkspace/xcuserdata/scott.xcuserdatad/UserInterfaceState.xcuserstate
Please, commit your changes or stash them before you can switch branches.
Aborting`
So I deleted that folder, and now it works.