+1  A: 

Looks like this is your key bit (doesn't normally come up in system log):

VoiceOverTouch exiting because accessibility is not enabled. To enable do this: 
'defaults write com.apple.Accessibility AccessibilityEnabled true'

Your app has some dependency on accessibility being enabled. Suggest you follow the instruction and run the bit in quotes on your system console.

h4xxr
I've done that, but it did not helped. Perhaps it should be done inside simulator?
Alexander Gladysh
I've enabled accessibility in the simulated OS itself and updated question text with the results.
Alexander Gladysh
+1  A: 

I'm worried about these two lines:

12.08.09 11:01:28 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 11:01:28 com.apple.launchd[166] (com.apple.iPhoneSimulator:com.apple.dataaccess.dataaccessd) Path monitoring failed on "/var/mobile/Library/Preferences": No such file or directory

It appears to me like your Xcode (specifically, the iPhone Simulator) installation is broken somehow. I'd suggest saving all your important files and reinstalling the SDK.

Tim
This is on my plan right after trying to recreate project once again in small steps. (OTOH, why do other applications work in the Simulator?) What do you think, may I clean whole Developer directory, so SDK installation would be on the clean ground?
Alexander Gladysh
Getting rid of `/Developer` is usually the recommended way of forcing a clean install of the SDK, yes. And other applications may not be trying to access the same preferences this one is, so only this app is stumbling upon the broken part of the install.
Tim
+5  A: 

Recreating project step-by-step showed that it was directory structure.

I've had directory named 'resources' with resources for my application. That directory was added to the bundle as is (via Folder References feature).

When I renamed that directory to less common name, error went away.

So, never name any custom directories in the bundle 'resources'.

Guys from Xcode (or simulator) team could improve their error reporting. I've had to spend whole day debugging this issue. :-(

Alexander Gladysh
Bummer... that didn't seem to change anything for me =(
JP
What specifically didn't? Have you tried other workarounds listed in the question? That is a symptom of many different bugs.
Alexander Gladysh
Thank you so much for this!!
Albert
+2  A: 

I just encountered similar error after cleaning up our XCode projects and updated them to use XCode config files. It occured only to one of our iPhone application targets, not all of them.

XCode said

Error from Debugger: Failed to launch simulated application: Unknown error.

In Console, only information was following two lines:

30.9.2009 14.31.19 com.apple.launchd[99] (com.apple.iPhoneSimulator:com.apple.dataaccess.dataaccessd) Path monitoring failed on "/var/mobile/Library/Preferences": No such file or directory 
30.9.2009 14.31.19 Xcode[13827] Error launching simulated application: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 UserInfo=0x389db50 "Unknown error."

It turned out that I had accidentally deleted Info.list file build setting from the target and neither XCode nor iPhone simulator could emit any useful error message about that. Adding a build setting again fixed the problem.

tequilatango
I had the same problem, only with my Prefix Header setting. Note that this setting had to be set on my target, not on the project.
jemmons
+1  A: 

I had a similar issue with a different solution: some of my .xib files had a deployment target (2.0) that was no longer installed on my machine.

The solution was to open the xibs in Interface Builder, do cmd-opt-I to get the project info for each one, and make sure the deployment and development targets were set to correct versions.

I then did cmd-shift-K to clean the project in XCode, rebuilt, deployed, and everything seems to work fine.

Paul Cantrell
+1  A: 

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!

Robert Conn
+1  A: 

I was getting this problem when I had my Info.plist file set to export to the target. You might want to check that, de-selecting that option fixed the problem for me.

Alex
+1  A: 

After an update of the SDK I had the same problem. None of the tips worked for me. Finally I´ve noticed in the plist file there was a space character after ${EXECUTABLE_NAME} which caused the problem.

Kay Siegert
+1  A: 

I had a similar issue. I was also unable to install the app on a device, getting a 'The application bundle does not contain a valid identifier." error message. This was due to a directory named "Contents" added as a Folder Reference. I removed the reference, renamed the directory, add it again as a Folder Reference, clean the project, rebuild and voilà, I was able to launch the simulator.

Phil
+1  A: 

I use the Rename Project option to change my project's name and everything worked after that. I think we're all dancing around any number of methods of "fixing" whatever internal files XCode uses to track what it's doing. Pretty frustrating bug.

Cliff McC