Home > iOS, Mobile Development > Xcode4 – Is your old project hanging in the simulator?

Xcode4 – Is your old project hanging in the simulator?


So you took the plunge and upgraded to Xcode4…

Do your old projects build but won’t run on the simulator or even on a device? Well we spent a couple hours today trying to figure out why and after uninstalling/reinstalling, recreating projects, comparing settings, and every combination of simulator and SDK we finally stumbled on a solution.

So it seems I had some corrupt settings or project data that was preventing the app from running. By deleting all the xcuserdata associated with project it magically started to work again.

If you are having the same problem — deleting all the Xcode4 project data with your userid may get you up and running again…

    How to go about deleting the user-specific project data
  1. In terminal – navigate to your project directory
  2. cd into the ${PROJECT_NAME}.xcodeproj directory
  3. run this command: find . -name ‘*yourUserName*’
  4. rm -rf any files or dirs that come up
  5. Reopen Xcode4 – build and *hopefully* run your project

Hope it helps!

  1. March 24, 2011 at 10:37 PM

    This worked. Thank you very much for the ground work. I spent many hours trying to figure it out.

  2. georry
    September 2, 2011 at 6:18 PM

    Unbelievable. This problem had me hung up ALL week. THANK YOU for figuring this out!

    • September 2, 2011 at 7:54 PM

      No problem! Glad it worked for ya!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: