ionic cordova run ios 报错 ESecurity 或 Could not connect to the server.

在命令行中执行:

ionic cordova run ios -l --external

报错: There was an error launching app: ESecurity

或是在XCODE中点击play按钮,报错 Could not launch ,Failure Reason: Security

解决方法:打开iphone上的设置>能用>设备管理,在开发者应用中选择你自己的应用的开发者(与xcode中项目的的Signing Certificated相同,),点进去后再点信任。

如果报错:Could not connect to the server.

解决方法:执行

ionic cordova prepare ios

参数官方文档

原文地址:https://www.cnblogs.com/johnjackson/p/13913854.html