如何在特定的iOS模拟器上启动Meteor应用程序

时间:2021-09-26 16:53:06

After my Xcode upgraded to version 7.3 I'm not able to start my Meteor apps on simulators other then iPhone-6s-Plus. When I enter command

在我的Xcode升级到7.3版之后,我无法在iPhone-6s-Plus以外的模拟器上启动我的Meteor应用程序。当我输入命令

meteor run ios

having no any simulator running it automatically starts iPhone-6s-Plus. But if I start some other simulator using Xcode then that's what I get trying to run app (using --verbose)

没有任何模拟器运行它会自动启动iPhone-6s-Plus。但是,如果我使用Xcode启动其他模拟器,那就是我试图运行应用程序(使用--verbose)

No target specified for emulator. Deploying to iPhone-6s-Plus, 9.3 simulator

没有为模拟器指定目标。部署到iPhone-6s-Plus,9.3模拟器

** RUN SUCCEEDED **

**跑步成功**

An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159): Invalid device state

处理命令时遇到错误(domain = com.apple.CoreSimulator.SimError,code = 159):设备状态无效

How I can run my apps on any other simulator then iPhone-6s-Plus?

我如何在任何其他模拟器上运行我的应用程序然后iPhone-6s-Plus?

1 个解决方案

#1


0  

OK, seems it is normal behaviour with Meteor v1.3 described in documentation: http://guide.meteor.com/mobile.html#running-your-app

好的,似乎是文档中描述的Meteor v1.3的正常行为:http://guide.meteor.com/mobile.html#running-your-app

Currently, this will always run your app on a simulated iPhone 6s Plus. Use ios-device to open Xcode and select another simulator instead.

目前,这将始终在模拟的iPhone 6s Plus上运行您的应用程序。使用ios-device打开Xcode并选择另一个模拟器。

So command

meteor run ios-device

will open generated iOS project in Xcode where you will be able to select any other simulator or connected device.

将在Xcode中打开生成的iOS项目,您可以在其中选择任何其他模拟器或连接的设备。

#1


0  

OK, seems it is normal behaviour with Meteor v1.3 described in documentation: http://guide.meteor.com/mobile.html#running-your-app

好的,似乎是文档中描述的Meteor v1.3的正常行为:http://guide.meteor.com/mobile.html#running-your-app

Currently, this will always run your app on a simulated iPhone 6s Plus. Use ios-device to open Xcode and select another simulator instead.

目前,这将始终在模拟的iPhone 6s Plus上运行您的应用程序。使用ios-device打开Xcode并选择另一个模拟器。

So command

meteor run ios-device

will open generated iOS project in Xcode where you will be able to select any other simulator or connected device.

将在Xcode中打开生成的iOS项目,您可以在其中选择任何其他模拟器或连接的设备。