Could not launch process launch failed: timed out

2019-01-10 04:51发布

I am trying to launch my app on device. It is launching successfully on the simulator.

  • List item
  • I use 7.1 SDK
  • Xcode 5
  • And the device is a 7.1 iPhone 4S

I have tried:

  • Clean
  • Clean Build Folder
  • Deleting app
  • Disconnecting/Reconnecting device
  • Booting device
  • restarting Xcode

What can I do to make it work?

Could it be something with Code Signing?

Currently i have it set to 'Dont Code Sign'

21条回答
时光不老,我们不散
2楼-- · 2019-01-10 05:43

If your goal is to just launch the app and debug it, you can also edit the schema to "Wait for executable to be launched" and run the app manually. The setting is under Edit schema > Run > Info > Launch. Choose "Wait for executable to be launched" instead of "Automatically". It will wait for you to run the app (by manually tapping it) instead of timing out.

查看更多
家丑人穷心不美
3楼-- · 2019-01-10 05:44

Below are 2 awesome hacks that have not been mentioned yet:

HACK #1:

Lock your phone, press XCode start, wait till XCode says "unlock your device to launch", then unlock your phone, it will be launched successfully, works every time.

HACK #2:

If your goal is just to debug the app, here is another simple and straight-forward approach:

  1. After the app is deployed, launch it manually.
  2. Goto XCode -> Debug -> Attach to Process ... to choose your app from the list, then debug properly.

This works well for me, and it saves lots of time. I hope this helps, thanks!

查看更多
啃猪蹄的小仙女
4楼-- · 2019-01-10 05:44

In my case there was no value at Targets -> Build Settins ->Provisioning Profile. Though Code Signing looked ok)

查看更多
登录 后发表回答