views:

14941

answers:

13

Building an iPhone project results in:

Failed to launch simulated application: SpringBoard failed to launch application with error: 7

And the app doesn't install on the simulator. What's this all about? What's SpringBoard and what is error 7?

+1  A: 

Springboard is the app that launches apps. It's the home screen of the iPhone. I had tons of problems when I tried to get my app running on the phone -- turns out that I had an older version of the SDK that was incompatible with the version of the OS my phone had. Reinstalling the latest SDK did the trick.

Also, have heard that clearing the XCode cache sometimes helps (didn't for me) -- XCode menu->Clear cache...

Lou Franco
+1  A: 

Maybe this will help: http://discussions.apple.com/thread.jspa?threadID=1605042&tstart=72

I had similar issues when I was trying to install my current development on the iPhone and this information about the AppID fixed it.

For quick reference, the AppID you created when you started creating certificates for development and provisioning of your iphone asked you to create a reverse domain name identifier. Something like: QS32H9XPNE.domain.subdomain.companyname.*

To correctly link up your application to the AppID would require you to set the identifier in the application to domain.subdomain.companyname.application.*

Hope this helps

Barry Jones
+33  A: 

I had the exact same problem - I reset the iphone simulator and then quit the simulator (i.e. command q) then started it again.

Worked.

oacis
I had the same problem. Resetting content and settings alone didn't do it; i had to quit and let xcode open it for me to make it work.
Kevlar
Quitting xcode didnt seemed to matter much.But restarting simulator does it! Thanks for the tip!
Prakash
This solution worked for me.
quano
Olie
A: 

I had the same problem.

It happens as follow...

I had a folder storing images in some sub-folders.

If I add the root image folder as "directory", I receive this error.

If I add the root image folder as "group", simulator runs fine.

weird...

A: 

It happens to be related to folder name as well. My image folder was originally named "contents" and I got the error described.

Changed the folder name to "image_files" and reimport it to Xcode project as "folder". It works!

This is totally random...

+3  A: 

Boy, is the answer to this one hard to find, but I came up with a workaround. The simulator gives this error if it has any problems with accessing files in ~/Library/Application Support/iPhone Simulator/. This could be a permissions problem, but in my case it was even more subtle: my home directory is NFS mounted, and that seems to somehow be the source of the problem.

The basic workaround is to create a directory local to the machine, and link the iPhone Simulator's directory to that local directory. You shouldn't need to move your source files or project directory; it's just the simulator targets that are the problem.

Here is one series of steps to accomplish the workaround, to be typed in at the terminal (1-3 done on every machine you'll be developing on, 4-6 once in your NFS-mounted home directory):

  1. sudo mkdir /usr/local/iphone-dirs
  2. sudo chmod 777 /usr/local/iphone-dirs
  3. mkdir /usr/local/iphone-dirs/my-dir
  4. cd "~/Library/Application Support/"
  5. rm -rf "iPhone Simulator/"
  6. ln -s /usr/local/iphone-dirs/my-dir/ "iPhone Simulator"

There are obviously many variations on this theme; I suspect that using a locally-hosted directory in /tmp would be fine (and not require admin privs, but would have to be redone every time the system is rebooted). As given, steps 1 and 2 are good if you will have multiple users using these machines that you don't want to collide with each other. If you have your own personal machine but NFS-mount your homedir, you could probably just skip to something like step 3 (and sudo it). Just make sure that whatever dir you create in step 3 is the dir that you symlink to in step 6.

+2  A: 

XCode menu->Clear cache solved my problem.

Same - this fixed things for me too.
Ali Parr
Quitting both Xcode and the simulator and then clearing the cache (menu option is now called "Empty Cache...") worked for me.
Karsten Silz
+1  A: 

This happens to me when i switch from testing on the device to testing on simulator. Restarting Xcode and simulator gets rid of this error for me.Silly.

Surya
A: 

That did it for me, too:

This happens to me when i switch from testing on the device to testing on simulator. Restarting Xcode and simulator gets rid of this error for me.Silly.

A: 

When a home directory mounted in NFS you have the problem with the simulator.

To get rid of it, you need to to create a couple of directories in some local place where you have permissions to write, "iPhone Simulator" and "Interface builder". Then remove "~/Library/Application Support/iPhone Simulator" and "~/Library/Application Support/Interface Builder 3.0". And finally create symlinks at the exact places of the removed directories pointing to the local directories.

Anton
A: 

For mine, I got the error when I tried to change the App bundle ID setting in my info.plist file for the sake of running a test. Changing it back cured the problem, but didn't do me any good for the test. Thankfully, the app had loaded in the simulator and I ran it manually for my test.

As far as I can tell, the problem stemmed from having a bundle ID that matched both a specific ID and a wild-card ID. The App IDs I've tried that match only a specific ID/Profile haven't shown a problem.

Walt Sellers
A: 

I initially solved this by restarting the iPhone Simulator. But this shouldn't be the answer. The error came from editing the info plist.

Check that you didn't change any values that were set before provisioning your app for your device. I wanted to change my Bundle Identifier, but had to go back to the default one after having this error. Now it's fixed. Next step will be to get a new provision Id with the Bundle Id changed.

elcool
A: 

Check your console and you will get a better idea of what the error might be. That error number is pretty generic. In my case I had an error in my Plist file. I chenged something that I shouldn't have. But I realized this was the problem because the console had a more detailed error message:

2010-09-13 23:30:27.149 Appname[5580:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle:

... and it goes on.