Xcode error: Failed to launch simulated application

前端 未结 17 2120
走了就别回头了
走了就别回头了 2020-12-16 03:21

Problem

Unlike people have asked at here and here, I got this error after a brand new installation of Leopard (hackintosh), this problem really driving me crazy a

相关标签:
17条回答
  • 2020-12-16 04:03

    I had the same issue last night, and suddenly my system got reboot. At that moment, i was trying to install an application into simulator. When system returned, and i tried again to install the app, it said, "Failed to launch simulated application"

    Than i did googled it, and tried many solutions, like cleaining all targets and try building again, but didn't worked out.

    So i have found the following link, where it is described, how to reset the iPhone Simulator contents:

    http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/125-Using_iPhone_Simulator/iphone_simulator_application.html

    I tired doing it, and you guys would'nt believe me, it worked :) ,

    Solution was : "To set the user content and settings of the simulator to their factory state and remove the applications you have installed, choose iPhone Simulator > Reset Content and Settings"

    Best of Luck to all.............. :)

    0 讨论(0)
  • 2020-12-16 04:05

    I had the same problem. I had accidentally added my info.plist file to my target and it was getting copied to the app bundle every time I built the application. So there were 2 .plist files in the bundle - mine and the Info.plist, created by XCode - which confused the simulator.

    0 讨论(0)
  • 2020-12-16 04:07

    why anybody didn't tell about restarting simulator.

    In my case,

     Resetting the iPhone with Reset Content and Settings
    
     and 
    
     **ReStart Simulator** 
    

    works well~

    0 讨论(0)
  • 2020-12-16 04:10

    FIXED For the issue: iPhone Simulator failed to find the process ID of com.yourcompany.[your application name]

    I was having an issue building and simulating a project I built under OS Version 2.2.1, which I could no longer get to build and run in the simulator for XCode 3.1.4, even though I forced XCode to build for "Simulator - 2.2.1 Debug"

    I was able to get past this problem by: - Close the iPhone Simulator - Putting XCode into View->Detail - Opening the "Info.plist" file in the "Resources" folder - Near the top of the file you should see "Info.plist" with and up/down arrow selector - Click on the up/down arrow selector - Select "Clear File History"

    Built For: Simulator - 2.2.1

    XCode Version: 3.1.4 (Which includes OS3.1 Beta 3)

    0 讨论(0)
  • 2020-12-16 04:11

    In my case, I was adding a target to an existing app that had always worked. In my case, I had forgotten to select all the source code, xibs, frameworks, etc. and click their target checkbox. My clue was that the build happened instantaneously, which didn't make any sense. It never built anything. It just failed to install in the simulator. Once I included all the source files, etc., for the new target, then it built and installed fine.

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