Xcode报错:The tunnel connection failed while the system tried to connect to the device
Xcode报错:The tunnel connection failed while the system tried to connect to the device

Xcode报错:The tunnel connection failed while the system tried to connect to the device

Xcode运行项目时,提示如下报错:

Previous preparation error: The tunnel connection failed while the system tried to connect to the device.; The tunnel connection failed while the system tried to connect to the device.

该报错内容为:Xcode没有成功建立起设备的调试连接(debugging tunnel),因此构建前的准备流程直接失败。

这个隧道是 Xcode 用来给真机传APP、传日志、传调试指令,如果隧道坍塌,构建就会返回“Previous preparation error”。

解决方案:关掉VPN。

   

如果您认为这篇文章给您带来了帮助,您可以在此通过支付宝或者微信打赏网站开发者。

欢迎加入我们的 微信交流群QQ交流群,交流更多精彩内容!
微信交流群二维码 QQ交流群二维码

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注