Xcode 5 - “iOS Simulator failed to install applica

2019-01-21 06:31发布

Using Xcode 5 GM, anytime I switch to the 5.1, 6.0 or 6.1 simulators to test, I get the error "iOS Simulator failed to install application." When I reset the simulator it works, but this is getting very tiring.

Anybody have a permanent fix or workaround?

17条回答
放我归山
2楼-- · 2019-01-21 06:43

i got the same problem but solved by following way....

  1. Launch the iOS Simulator

  2. Go and click "iOS Simulator" menu

  3. Click "Reset content and settings"

  4. Close simulator and rebuild your app.

enter image description here

Above screen shot is showing the way how you can do this...

I think this works for you...!!!

查看更多
萌系小妹纸
3楼-- · 2019-01-21 06:46

You are using Xcode GM which is under beta stage. Use latest Xcode 5.1.1 available. Also, these error occur while switching between simulator (32 bit and 64 bit).

  1. Quit the simulator and re-build the application. OR
  2. Reset simulator from "iOS simulator" -> "Reset content and settings.."

Error

查看更多
成全新的幸福
4楼-- · 2019-01-21 06:47

Looks like this is a known issue. From the Xcode 5 release notes:

After switching the minimum deployment target of an application from iOS 7.0 to a release prior to iOS 7.0, building and running the application may fail with the message “iOS Simulator failed to install the application.”

  • Go to the iOS home screen, click and hold the application icon, then tap the hovering “X” button to delete the application. 13917023

Another release note:

iOS Simulator

  • If an iOS app is detached, relaunching the same app from Xcode will result in a black screen in the Simulator even though the new app is launched. Terminate the app in the Simulator or relaunch it for the second time. 14648784
查看更多
时光不老,我们不散
5楼-- · 2019-01-21 06:48

None of the other suggestions worked for me. However, after comparing my existing app settings to a new vanilla project, I noticed that the "Build" field for my Target was blank. Once I put something in that field, the app installed just fine!

查看更多
对你真心纯属浪费
6楼-- · 2019-01-21 06:51

To check your Executable file settng ex.$(EXECUTABLE_NAME) (Project setting - info property page)

查看更多
混吃等死
7楼-- · 2019-01-21 06:51

For me it was -framework XCTest.

It made the app die with iOS Simulator failed to install application

and on the device Could not inspect the application package.

Removed it and now works.

查看更多
登录 后发表回答