xcode putpkt:写入失败,管道损坏

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5266784/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:26:20  来源:igfitidea点击:

putpkt: write failed, broken pipe

xcodeipaddeployment

提问by Tejaswi Yerukalapudi

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?

我正在使用 AdHoc 部署在 iPad 上部署我的应用程序,但出现此错误。我在 SO 中查看了一些相同的问题,但解决方案始终是重新启动 XCode、重新启动 iPad、重新启动 Mac。我已经完成了所有三个并且这个错误不会消失。我需要查看其他任何提示吗?

Thanks,
Teja.

谢谢,
泰嘉。

回答by mud

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.

要解决此问题,无需删除、清理或重建应用程序。只需要重启设备。

回答by Tejaswi Yerukalapudi

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

好吧,我已将 iPad 恢复为出厂默认设置。它现在似乎有效,所以是的。

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.

编辑:请查看下面@mud 的答案,因为它解决了大多数情况而无需完全恢复。就我而言,这不起作用,所以我接受了这个答案。

回答by SMSidat

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).

我遇到了同样的错误 - 我不仅重新启动了我的设备,而且还删除了我设备上的应用程序并清理了构建目录(产品 --> 在 Xcode 4 上清理)。

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

然后我再次构建并运行该程序,它工作正常。

I did not need to restart Xcode.

我不需要重新启动 Xcode。

回答by Pandey_Laxman

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

如果您尝试了上述所有技巧,那么这里有一个对我有用。

Just go to the project Directory and delete the Buildfolder there.

只需转到项目目录并删除那里的Build文件夹。