美文网首页
ionic 模拟器运行失败解决方案

ionic 模拟器运行失败解决方案

作者: RudyXiong | 来源:发表于2018-07-19 11:11 被阅读0次

提示错误:

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

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

相关文章

网友评论

      本文标题:ionic 模拟器运行失败解决方案

      本文链接:https://www.haomeiwen.com/subject/glozpftx.html