XCode: Could not launch “APP_X_Y” - 'A' packet returned an error: -1

夙愿已清 提交于 2019-11-30 18:15:15

If you create a new project from scratch, can this new project connect to the simulator? In that case I suggest just moving over the existing code and settings to a fresh project. I've had to resort to this at least once that I can remember because something fishy had gone wrong with the XCode project file.

Got the same error when attempting to deploy an application to the third of three connected devices.

All I had to do was quit XCode and restart it and then it worked fine again.

Had the same error. Cleaned build folder, emptied derived data folder, deleted app from device, restarted xcode and it worked again.

None of the other answers helped me.. I wasn't able to launch ANY apps in Xcode 5 until I uncluttered my /etc/hosts file - leaving just the basics...

::1                     localhost
127.0.0.1               localhost
255.255.255.255         broadcasthost
fe80::1%lo0             localhost
10.0.1.100              XYZ.com
2001:470:XXXX::100      XYZ.com

You must edit the file as root, btw... sudo nano /etc/hosts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!