Failed To Launch Simulated Application Unknown Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Xcode error: Failed to launch simulated application up vote 9 down vote favorite 4 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: Uncheck Info.plist Quit XCode Delete directory /Lib/Caches/com.apple.DeveloperTools.### Open Xcode project Clean All Targets 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! iphone xcode crash ios-simulator osx-leopard share|improve this question edited May 1 '12 at 0:28 stewe 24.2k55760 asked May 5 '09 at 1:57 springrider 3031317 add a comment| 17 Answers 17 active oldest votes up vote 7 down vote 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 X
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like http://stackoverflow.com/questions/822972/xcode-error-failed-to-launch-simulated-application you, helping each other. Join them; it only takes a minute: Sign up Failed to launch simulated application: Unknown error up vote 15 down vote favorite 11 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 message: Failed to launch simulated http://stackoverflow.com/questions/1262898/failed-to-launch-simulated-application-unknown-error application: Unknown error. My application has two targets, but this error occurs on both of them. When error occurs, the simulated OS hangs — it displays black screen and no longer responds on any input. Simulator application itself does not hang — all menus are active. All other applications I've tried running (mostly Apple samples) do work fine. Purging of caches, rebooting and howling on the Moon did not helped. Rebuilding project from scratch did not helped either. I guess I have to do it again in smaller steps. Meanwhile, are there any other things to try than these below? Xcode | Empty Caches... Delete directory /Library/Caches/com.apple.DeveloperTools.### Full rebuild Reboot Change the product name (it did not contain any spaces anyway) Create new project and configure it manually from scratch A quote from the system.log: 12.08.09 0:13:59 [0x0-0xa70a7].com.apple.iphonesimulator[5368] -[MonitorController forwardEvents]: unable to send msg to ffffffff: 10000003 12.08.09 0:13:59 [0x0-0xa70a7].com.apple.iphonesimulator[5368] -[MonitorController forwardEvents]: unable to send msg to ffffffff: 10000003 12.08.09 0:14:03 com.apple.launchd[166] (com.apple.iPhoneSimulator:com.apple.dataaccess.dataaccessd) Unknown key for integer: JetsamPriority 12
simulated application: Unknown error." I'm trying to build for multiple targets in Xcode, to simplify the process of creating a "lite" and "pro" version of my application. In http://kechengpuzi.com/q/s717453 theory, this is great and I can pass defines to GCC_PREPROCESSOR_DEFINITIONS for use in my code. However, I'm having problems actually getting it to work due to an error trying to launch the second target in the simulator: Failed to launch simulated application: Unknown error. Here is the simple process failed to I'm using to create the additional target: Add #ifdef MYAPP_PRO to source files to modify behavior based on pro/lite version of app (and verify application is working as expected) Select Project > New Target... from menu, and pick "Cocoa Touch Application" (named MyAppPro") Edit new target settings; add GCC_PREPROCESSOR_DEFINITIONS user-defined setting failed to launch and set the value to "MYAPP_PRO" (no quotes) Set active target to "MyAppPro"; build and run. Failed to launch simulated application: Unknown error. Copy all settings from Info.plist to MyAppPro-Info.plist and try again Failed to launch simulated application: Unknown error. The build completes just fine, but I'm unable to run in simulator. Editing the project.pbxproj in the .xcodeproj directory, I notice there are some key differences between the two target definitions' build settings. I tried manually editing the file but must have done something wrong because I couldn't get it to load in Xcode afterwards. Original target's "Debug" build settings: buildSettings = { ALWAYS_SEARCH_USER_PATHS = YES; ARCHS = "$(ARCHS_STANDARD_32_BIT)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_C_LANGUAGE_STANDARD = c99; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; ONLY_ACTIVE_ARCH = YES; PREBINDING = NO; SDKROOT = iphoneos2.2.1; }; Thew new MyAppPro target's "Debug" build settings: buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CODE_SIGN_IDENTITY = "iPhone Developer"; CO