Alex Rivera | Logout

Failed to launch simulated application: Unknown error

Asked 2009-08-11T21:03:21.037
15
  • OS X 10.5.7 (genuine Mac)
  • Xcode 3.1.3
  • iPhone SDK 3.0

When I try to execute my iPhone application in simulator, I get the dreaded error message:

Failed to launch simulated application: Unknown error.

My application has two targets, but this error occurs on both of them.

When error occurs, the simulated OS hangs — it displays black screen and no longer responds on any input. Simulator application itself does not hang — all menus are active.

All other applications I've tried running (mostly Apple samples) do work fine. Purging of caches, rebooting and howling on the Moon did not helped. Rebuilding project from scratch did not helped either. I guess I have to do it again in smaller steps.

Meanwhile, are there any other things to try than these below?

  • Xcode | Empty Caches...
  • Delete directory /Library/Caches/com.apple.DeveloperTools.###
  • Full rebuild
  • Reboot
  • Change the product name (it did not contain any spaces anyway)
  • Create new project and configure it manually from scratch

A quote from the system.log:

12.08.09 0:13:59 [0x0-0xa70a7].com.apple.iphonesimulator[5368] -[MonitorController forwardEvents]: unable to send msg to ffffffff: 10000003 
12.08.09 0:13:59 [0x0-0xa70a7].com.apple.iphonesimulator[5368] -[MonitorController forwardEvents]: unable to send msg to ffffffff: 10000003 
12.08.09 0:14:03 com.apple.launchd[166] (com.apple.iPhoneSimulator:com.apple.dataaccess.dataaccessd) Unknown key for integer: JetsamPriority 
12.08.09 0:14:03 com.apple.launchd[166] (com.apple.iPhoneSimulator:com.apple.apsd) Path monitoring failed on "/var/mobile/Library/Preferences": No such file or directory 
12.08.09 0:14:03 com.apple.launchd[166] (com.apple.iPhoneSimulator:com.apple.dataaccess.dataaccessd) Path monitoring failed on "/var/mobile/Library/Preferences": No such file or directory 
12.08.09 0:14:03 
Edit
Report

1 Answer

2

Nothing above helped me - I went through all the suggestions. What eventually fixed it was deleting ~/Library/Application Support/iPhone Simulator. I then compiled and ran my app in the Simulator again, it recreated the directories, and my app ran fine. None of the accessibility or missing file errors were relevant.

To add to the above, i've had to resort to just creating a new project in my latest version of the SDK (this problem only raised its ugly head when I upgraded to 3.1.3). I then had to copy all my source files and resources over and reconfigure the build settings etc. This seems to cure the problem but it was a bit of work!

answered 2010-02-16T22:49:02.377

Your Answer