putpkt: write failed, broken pipe

2020-05-18 05:09发布

I'm using AdHoc deploy to deploy my app on an iPad, and I get this error. I've checked out a few questions in SO that say the same, but the solution has always been restart XCode, Restart iPad, Restart Mac. I've done all three and this error does not go away. Any other tips I need to look at?

Thanks,
Teja.

4条回答
家丑人穷心不美
2楼-- · 2020-05-18 05:27

Well, I've restored my iPad to factory defaults. And it seems to work now, so yeah.

EDIT: Please look at @mud's answer below since it solves most cases without a complete restore. In my case that didn't work, so I've accepted this answer.

查看更多
来,给爷笑一个
3楼-- · 2020-05-18 05:38

I had the same error - I not only restarted my device, but also deleted the app on my device and cleaned the build directory (product --> clean on Xcode 4).

I then built and ran the program again and it worked.

I did not need to restart Xcode.

查看更多
女痞
4楼-- · 2020-05-18 05:39

This problem seems to happen whenever I quit the app on my device (pressing the home button) while the debugger is stopped at a breakpoint. Any subsequent build and run on my device results in this error.

To fix this, there's no need to delete the app, clean or rebuild. Just need to restart the device.

查看更多
Bombasti
5楼-- · 2020-05-18 05:39

If you tried all above trick then Here is one that works for me.

Just go to the project Directory and delete the Build folder there.

查看更多
登录 后发表回答