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:25

As all of the above answers didn't helped for me I'll publish my solution:

Deleting all the occurrences of xcuserdata folders in .xcodeproj and .xcworkspace and restarting Xcode fixed the problem. To delete it right click your_app_name.xcodeproj and/or your_app_name.xcworkspace in your app folder and select "Show Package Contents". I hope that help someone to save some time.

查看更多
Root(大扎)
3楼-- · 2019-01-10 05:26

To run your app on a device, you will perform these tasks that follow:

  1. Request a development certificate.

  2. Add your device to the portal.

  3. Code sign your app.

  4. Launch your app on the device.

For more detail check this

查看更多
劳资没心,怎么记你
4楼-- · 2019-01-10 05:29

I literally restarted my iPad, that was connected for testing the app, and that resolved the issue.

查看更多
爷、活的狠高调
5楼-- · 2019-01-10 05:30

I just had this issue. I had to open the app on device and tap Trust Computer. No need for me to reboot everything 20 times, yay.

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

I got the same problem and after looking at the answers here I found mine. The issue at hand was: my dev distribution certificate was gone from iOS Dev Center, so I just assume it had timed out. I didn't get a nice warning though, just the above error - installing worked but debugging didn't. So I had Xcode regenerate a new one for me.

查看更多
做自己的国王
7楼-- · 2019-01-10 05:31

Below two steps solved for me:

For xcode version: 7.2

  • 1.Select any of your simulator to run ( just start your run, no need to load the app completely).
  • 2.Stop it.
  • 3.Then select your device and run.

This solved in my case.

查看更多
登录 后发表回答