This question already has an answer here:
这个问题在这里已有答案:
- Is there a way to simulate multiple iphones using xcode/iphone sim? 10 answers
有没有办法使用xcode / iphone sim模拟多个iphone? 10个答案
For example, to test features that have several users interacting. All I've come up with is multiple OS X VM's with an iOSS in each, but that seems like a sledgehammer missing the obvious right in front of me?
例如,测试具有多个用户交互的功能。我想出的就是多个OS X VM,每个都有一个iOSS,但这似乎是一个大锤在我面前错过了明显的权利?
3 个解决方案
#1
9
AFAICT, it does not support multiple instances running at the same time.
AFAICT,它不支持同时运行多个实例。
I tried two methods, but both failed.
我尝试了两种方法,但都失败了。
$ 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.
Using an alias (http://forums.creativecow.net/thread/71/860074) brings up a dailog box saying "Only one iOS Simulator can run at a time. Please quit iOS Simulator and try again."
使用别名(http://forums.creativecow.net/thread/71/860074)会显示一个dailog框,说“一次只能运行一个iOS模拟器。请退出iOS模拟器并重试。”
#2
0
http://www.coderebel.com/2010/08/31/iphone_simulator
You may want to checkout this tool. I can run multiple emulators with its help in different VNC consoles with different user on my mac mini.
您可能想要结帐此工具。我可以在我的mac mini上使用不同用户的不同VNC控制台帮助运行多个模拟器。
#3
-2
We have multiple Xcode developers logging on a centralized Mac and each users have own account. Each users can start a seperated Simulator window by running below command (" s should be included):
我们有多个Xcode开发人员在集中式Mac上登录,每个用户都拥有自己的帐户。每个用户都可以通过运行以下命令启动一个单独的模拟器窗口(应该包括“s”):
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator"
“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator”
After simulator window is opened, runining your project will automatically attach Xcode to this window.
打开模拟器窗口后,运行项目将自动将Xcode附加到此窗口。
Only thing that I'm not sure about, I've ran below script below before. I don't know if it fixed something on our sytem that allows us to run above command: http://coderebel.com/2010/08/31/iphone_simulator
只有我不确定的事情,我之前在下面的脚本下面运行过。我不知道它是否修复了我们的系统上允许我们运行以上命令的东西:http://coderebel.com/2010/08/31/iphone_simulator
So I suggest first try the command, if it does not help, try script, fix your system, then use the command after.
所以我建议首先尝试命令,如果它没有帮助,尝试脚本,修复你的系统,然后使用命令。
#1
9
AFAICT, it does not support multiple instances running at the same time.
AFAICT,它不支持同时运行多个实例。
I tried two methods, but both failed.
我尝试了两种方法,但都失败了。
$ 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.
Using an alias (http://forums.creativecow.net/thread/71/860074) brings up a dailog box saying "Only one iOS Simulator can run at a time. Please quit iOS Simulator and try again."
使用别名(http://forums.creativecow.net/thread/71/860074)会显示一个dailog框,说“一次只能运行一个iOS模拟器。请退出iOS模拟器并重试。”
#2
0
http://www.coderebel.com/2010/08/31/iphone_simulator
You may want to checkout this tool. I can run multiple emulators with its help in different VNC consoles with different user on my mac mini.
您可能想要结帐此工具。我可以在我的mac mini上使用不同用户的不同VNC控制台帮助运行多个模拟器。
#3
-2
We have multiple Xcode developers logging on a centralized Mac and each users have own account. Each users can start a seperated Simulator window by running below command (" s should be included):
我们有多个Xcode开发人员在集中式Mac上登录,每个用户都拥有自己的帐户。每个用户都可以通过运行以下命令启动一个单独的模拟器窗口(应该包括“s”):
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator"
“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator”
After simulator window is opened, runining your project will automatically attach Xcode to this window.
打开模拟器窗口后,运行项目将自动将Xcode附加到此窗口。
Only thing that I'm not sure about, I've ran below script below before. I don't know if it fixed something on our sytem that allows us to run above command: http://coderebel.com/2010/08/31/iphone_simulator
只有我不确定的事情,我之前在下面的脚本下面运行过。我不知道它是否修复了我们的系统上允许我们运行以上命令的东西:http://coderebel.com/2010/08/31/iphone_simulator
So I suggest first try the command, if it does not help, try script, fix your system, then use the command after.
所以我建议首先尝试命令,如果它没有帮助,尝试脚本,修复你的系统,然后使用命令。