Lost connection to “iPad 2”

2020-04-08 12:10发布

问题:

I have stopped all simulator processes but still getting below error.

Restore the connection to "iPad 2" and run "APPNAME" again, or if "APPNAME" is still running, you can attach to it by selecting Debug > Attach to Process > APPNAME.

Getting this error in Xcode 6,which is not consistent,but need to build it once again.

Please drop reasons if someone knows.

回答1:

This happens when you have 2 projects open in XCode you want to debug at same time.

To reproduce the problem:

  1. Launch a program in debug on the i(whatever) device
  2. Go to another (dependency) project and select Debug -> attach to process -> process launched at 1.

To avoid the problem:

  1. Launch the main process straight from the device
  2. Go to the dependency project and select Debug -> attach to process -> process launched at 1.


标签: ipad xcode6