The simulator could not install the application

I have been working on my application in the last few days, and I always know how to simulate it. Today I compiled and ran, did not receive any errors or warnings, but a message appears at the bottom of Xcode that

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

This is an internal error window that appears after trying again to "build and go",

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

Approval failed: nil == _currentSimulatorSession

I was looking for help on the Internet and I tried to delete the build folder manually, clean and build, and I recently completely reinstalled Xcode and the entire SDK.

Also, when you leave Xcode while the project is open, it gives me this error message:

Failed to close the project.

Reason: FAULT in the / SourceCache / iPhoneSimulatorRemoteClient / iPhoneSimulatorRemoteClient -18 / Source / DTiPhoneSimulatorSession.m: 147 Details: requestEndWithTimeout: caused an unsuccessful session. An object:
Method: -requestEndWithTimeout: Subject: {name = (null), num = 1} Backtrace: 0 0x00043888 - [DTAssertionHandler handleFailureInMethod: object: file_name: LINENUMBER: MessageFormat: arguments:] (in DevToolsFoundation) 1 0x000435tlerfionation_function1 _durestoolfionion_function1 _durestoolfionion_functionation_foundation_function1 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 0x9973017dOejectFemerStreet11defserfeclf [] (in DevToolsInterface) 1 2 0x9973017d - [NSArray makeObjectsPerformSelector:] (in CoreFoundation) 13 0x0076468e - [PBXProjectDocument mainModuleShouldClose:] (in DevToolsInterface) 14 0x00998bf6 - [Window XCPerspectiveModuleShouldClose:] (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) _shouldTerminateWithDelegatelectorctitmitcitmitcit 0x95b8c271 - [NSApplication te

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

+7
source share
5 answers

I came across this while trying to test my application in a simulator. Xcode 5, an application for iOS 5.1 through the current iOS 7.0.2 - Xcode can create and run on the iOS 7 simulator, but cannot install the application on the iOS 6.1 simulator. My steps to fix it were

  • Find stackoverflow and read all comments on this subject;
  • Ask iOS Simulator to show the system log and see the log when Xcode tried to create and run on the iOS 6.1 simulator;
  • Pay attention to this important log message: installd[1106]: 0xb0115000 delta_copy: Problem copying package delta
  • Go to iOS Simulator and remove the version of the iOS 7 application from the “device” (press and hold the application icon and then go to the delete tab (X)),
  • Build and run with a simulator.
+4
source

In the simulator application, select the ios simulator menu, then select reset Content and Settings. It has to be done.

+2
source

I had the same problem, and after a couple of hours I looked at the Info.plist file as plain text. For some reason, the value of CFBundleIdentifier has been changed, while the text of some code signing error has been added to it. I deleted it, and everything returned to normal. Hope this helps someone.

+1
source

This used to happen.

It turned out that my target was copying the main info.plist file to the package resources. When I unchecked info.plist, everything worked fine.

However, I think there are many things that can cause this problem.

0
source

I had the same problem and it turned out that @Michael was right.

I recently recreated my Xcode project (now I'm using Xcode 5.1) and added Info.plist and localized resources (like en.proj) to the Resources group, and that was the problem.

I followed other instructions, such as resetting the contents and settings of the simulator, setting a BundleId shot, uninstalling applications, but the problem was repeated again and again. I had to delete my application every time I launch the application, and it was very unpleasant.

Just deleting these files from "Resources" solved the problem.

0
source

All Articles