Mac iOS com.apple.CoreSimulator.SimDeviceType.undefined

来源:互联网 发布:数据库笛卡尔积图解 编辑:程序博客网 时间:2024/06/06 21:18

命令行中编译项目成功,但是无法直接运行至模拟器,提示如下错误:

No target specified for emulator. Deploying to undefined simulatorDevice type"com.apple.CoreSimulator.SimDeviceType.undefined" could not be found.[ERROR] An error occurred while running cordova run ios (exit code 1).

解决方案:

在项目中运行如下命令

cd platforms/ios/cordova && npm install ios-sim@latest


原理还不清楚。

阅读全文
0 0
原创粉丝点击