科尔多瓦构建iOS应用并打开模拟器,但未安装 [英] Cordova builds iOS app and opens emulator but doesn't install

查看:129
本文介绍了科尔多瓦构建iOS应用并打开模拟器,但未安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在MacOS的Cordova中制作一个iOS应用.

I'm making an iOS app in Cordova on MacOS.

当我运行cordova emulate ios时,该应用程序将构建并打开适用于iPhone X iOS 11.4的模拟器,但从未将其安装在模拟器中.它仅显示模拟器主屏幕.它就停在那里.

When I run cordova emulate ios the app builds and it opens the emulator for iPhone X iOS 11.4 but it never install the app in the emulator. It just shows the emulator home screen. It just stops there.

为什么要到这里而不再走下去?

Why is it getting here and not going any further?

更新:

现在再次尝试启动仿真后,它会出现以下错误:

Now after trying to start the emulation again a second time, it gives the following error:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.

推荐答案

我遇到了同样的问题.我已经通过使用cordova构建应用程序解决了.然后获取myapp.app并在模拟器上运行它.您可以按照以下步骤操作:

I have the same issue. I have resolved by building the app with cordova. then get myapp.app and run it over the emulator. you can follow the below steps:

  1. 安装Xcode
  2. 打开模拟器
  3. 添加平台iOS后构建应用
  4. 使用模拟器运行应用

安装ios sims

npm install -g ios-sim@next

xcrun simctl list

xcrun simctl install XXXXXXX-YYYYYY-XXXX-ZZZZ-XXXXXXXXX ~/path_to_app/myapp.app

更多信息 https://github.com/aymansalama/cordova-build-macos

这篇关于科尔多瓦构建iOS应用并打开模拟器,但未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆