Xcode error: Failed to launch simulated application

springrider picture springrider · May 5, 2009 · Viewed 33.9k times · Source

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 and nowhere else to find an clue, I googled and visited every article related with this, still can't get it solved.

After the first time install iPhone SDK 2.2.1, start a new project(any type, Navigate based, OpenGL ES application), then build and go, I got the following problem: sometime it's:

Failed to launch simulated application: Unknown error.

and sometimes it's:

Failed to launch simulated application: iPhone Simulator failed to find the process ID of com.yourcompany.[application name]

It seems that apps in the simulator crashed immediately, so Xcode can find the process ID.

Solution

This link says that this even can't be solved. Some others make a detailed step by step:

  1. Uncheck Info.plist
  2. Quit XCode
  3. Delete directory /Lib/Caches/com.apple.DeveloperTools.###
  4. Open Xcode project
  5. Clean All Targets
  6. Rebuild

and I reset the iPhone Simulator. This also didn't solve the problem…

I've even tried uninstall the SDK and reinstall it, still got the same error…

Is this a problem related with hardwares? or the operating system version? I'm using a hackintosh (iDenebv1.4 10.5.6), all other software works good including iTunes && vmware fusion.

Great thanks for any further tips or clues!

Answer

frankm picture frankm · Aug 28, 2009

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)