Failed to launch simulated application: Unknown error

后端 未结 15 1718
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 04:30
  • 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

相关标签:
15条回答
  • 2020-12-24 04:56

    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.

    0 讨论(0)
  • 2020-12-24 04:56

    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.

    0 讨论(0)
  • 2020-12-24 04:59

    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!

    0 讨论(0)
  • 2020-12-24 05:00

    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.

    0 讨论(0)
  • 2020-12-24 05:03

    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. :-(

    0 讨论(0)
  • 2020-12-24 05:05

    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.

    0 讨论(0)
提交回复
热议问题