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。
