Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulator Failed to Install Application

I've been working on my app over the past few days and I've always been able to simulate it. Today, I compiled and ran, got no errors or warnings, but on the bottom of XCode there is a message saying

> Error From Debugger: Failed to launch
> simulated application: iOS Simulator
> failed to install application

This is the Internal error window that pops up after trying to "build and go" once again,

File: /SourceCache/IndigoDebuggingPlugin/IndigoDebuggingPlugin-44/iPhoneSimulatorDevice/XCiPhoneSimulatorDevice.m Line: 341 Object: Method: _launchSimulatedExecutable:

Assertion failed: nil == _currentSimulatorSession

I looked for help around the internet and I've tried deleting my build folder manually, cleaning and building, and I've just recently completely reinstalled XCode and the whole SDK.

Also when quitting XCode with this project open, it gives me this in an error message:

Failed to close project

Reason: ASSERTION FAILURE in /SourceCache/iPhoneSimulatorRemoteClient/iPhoneSimulatorRemoteClient-18/Source/DTiPhoneSimulatorSession.m:147 Details: requestEndWithTimeout: called on failed session. Object:
Method: -requestEndWithTimeout: Thread: {name = (null), num = 1} Backtrace: 0 0x00043888 -[DTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsFoundation) 1 0x00043518 _DTAssertionFailureHandler (in DevToolsFoundation) 2 0x1e06f807 -[DTiPhoneSimulatorSession requestEndWithTimeout:] (in iPhoneSimulatorRemoteClient) 3 0x1d8a5ca9 4 0x00826b95 -[PBXDebugSessionModule stopLaunchSession] (in DevToolsInterface) 5 0x008243c8 -[PBXDebugSessionModule closeModule] (in DevToolsInterface) 6 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 7 0x0077f6ea -[PBXModule closeModule] (in DevToolsInterface) 8 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 9 0x0077f6ea -[PBXModule closeModule] (in DevToolsInterface) 10 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 11 0x0099a188 -[XCPerspectivesSpecification closeAllModules] (in DevToolsInterface) 12 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 13 0x0076468e -[PBXProjectDocument mainModuleShouldClose:] (in DevToolsInterface) 14 0x00998bf6 -[XCPerspectiveModule windowShouldClose:] (in DevToolsInterface) 15 0x000099a1 16 0x00007297 17 0x95b8d522 -[NSApplication _docController:shouldTerminate:] (in AppKit) 18 0x95b8d048 -[NSDocumentController(NSInternal) _continueTerminationHavingClosedAllDocuments:context:] (in AppKit) 19 0x95b8ce26 -[NSDocumentController(NSInternal) _shouldTerminateWithDelegate:shouldTerminateSelector:] (in AppKit) 20 0x95b8c6ff -[NSApplication _shouldTerminate] (in AppKit) 21 0x95b8c271 -[NSApplication te

I have no idea what to do next, any help would be appreciated.

like image 775
TowBoat911 Avatar asked Feb 24 '11 23:02

TowBoat911


People also ask

Can I run IPA on simulator?

Only non-packaged apps are supported. Xcode Simulator does not support installation of . ipa files.

Can we install app on iOS simulator?

Install Apps on SimulatorsTo install an app on a connected simulator, follow these steps. Go to Apps > Install Application. Find and open the app you want to install from your Mac. The app appears in the list of installed apps on the right side of the iOS Gateway window.

What is Simctl?

Simctl is a tool to help manage and programmatically interface with the simulator. You can access simctl using the xcrun command-line tool. Now, you'll explore several of these subcommands. Run the following: xcrun simctl list. The list command shows the list of all the available devices and the runtimes.


1 Answers

I was encountering this when trying to test my app in the simulator. Xcode 5, app is for iOS 5.1 up through current iOS 7.0.2 -- Xcode could build and run on the iOS 7 simulator, but would fail to install the app on the iOS 6.1 simulator. My steps to fix this were

  1. Search stackoverflow and read all the comments on this question;
  2. Have the iOS Simulator show the system log and watch the log when Xcode tried to build and run on the iOS 6.1 simulator;
  3. Notice this important message in the log: installd[1106]: 0xb0115000 delta_copy: Problem copying package delta
  4. Go to iOS Simulator and delete the iOS 7 version of the app from the "device" (long press on app icon followed by clicking on the (X) removal tab),
  5. Build and run successfully with the simulator.
like image 174
tobinjim Avatar answered Oct 06 '22 20:10

tobinjim