Reputation: 555
I run a Mac OSX 10.7 and an Xcode 4.2.1, everything was fine until a few hours ago when my xcode suddenly hangs when i try to run the simulator! This is what Happens
These are all the things I've tried (with no success!)
Also, I use Git for Version control, and I've been doing so for a month now without any problems! I dunno if this might actually cause a problem (in terms of how xcode manages its resources!) but im just giving out all the information I can, in hope that I can find a fix for this! Any help will be greatly appreciated!
Upvotes: 2
Views: 1124
Reputation: 2810
Rebooting the Mac usually works for me. Awful that this is necessary.
Upvotes: 1
Reputation: 555
So after loosing an entire weekend, i managed to fix the problem and some sleep, i managed to fix the problem (with some help). Here's what i did:-
I had a directory in my project folder called "Resources". I changed the name of the directory.
I had written a build script and an Encrypted file URL protocol class that references to the Directory "Resources". I updated them accordingly to the new renamed directory.
Deleted all build folders and derived data. Making sure there was no reference to any "Resources" directory on my Laptop!
And it worked just fine. From now on, i won't be naming any directory in my project "Resources". Apparently it is known to throw weird errors at you!
Hope this helps to all of you avoiding the mistake i made!
Upvotes: 3
Reputation: 22873
Delete the build folder from here - ~/Library/Developer/Xcode/DerivedData
And press command + r
Upvotes: 0
Reputation: 1302
This has happened to me a lot lately. I fix it by performing a clean, shutting down and restarting both the mac and the iPhone. Hope it works for you too. I've never been able to fix it without a restart somehow!
Upvotes: 0
Reputation: 17382
Try deleting the app from the simulator itself. A clean in xcode won't do this and sometime the debugger gets in a twist with the current copy.
Browse to ~/library/iPhone Simulator/<version>/Applications
and hose everything in there or just search around till you find the right one for your app and delete that.
A reason for being more discriminating when you delete is that might want to keep documents from those folders if your app makes documents.
Upvotes: 0