Failed to launch simulated application: Unknown error

后端 未结 15 1877
爱一瞬间的悲伤
爱一瞬间的悲伤 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 05:14

    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.

提交回复
热议问题