有没有办法一次运行多个iOS模拟器?

Is there a way to run multiple iOS Simulators at once?

本问题已经有最佳答案,请猛点这里访问。

例如,测试具有多个用户交互的功能。 我所想到的只是每个都带有一个iOSS的多个OS X VM,但这似乎就像是大锤在旁边消失了吗?


AFAICT,它不支持同时运行多个实例。

我尝试了两种方法,但都失败了。

1
2
$ open -n /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\\ Simulator.app
LSOpenURLsWithRole() failed with error -10829 for the file /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app.

使用别名(http://forums.creativecow.net/thread/71/860074)弹出一个对话框,提示"一次只能运行一个iOS模拟器。请退出iOS模拟器,然后重试。"


http://www.coderebel.com/2010/08/31/iphone_simulator

您可能想签出此工具。我可以在Mac mini上以不同的用户在不同的VNC控制台中运行多个模拟器,并提供其帮助。


我们有多个Xcode开发人员登录到集中式Mac,每个用户都有自己的帐户。每个用户都可以通过运行以下命令(应包括" s")来启动单独的"模拟器"窗口:

" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator"

打开模拟器窗口后,运行项目将自动将Xcode附加到此窗口。

唯一我不确定的事情是,我之前在以下脚本下运行过。我不知道它是否在我们的系统上修复了某些使我们可以在命令上方运行的问题:
http://coderebel.com/2010/08/31/iphone_simulator

因此,我建议您先尝试使用该命令,如果它没有帮助,请尝试使用脚本,修复系统,然后再使用该命令。