开发者

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

开发者 https://www.devze.com 2023-03-01 09:43 出处:网络
This question already has answers here: Is there a way to simulate multiple i开发者_Go百科phones using xcode/iphone sim?
This question already has answers here: Is there a way to simulate multiple i开发者_Go百科phones using xcode/iphone sim? (10 answers) Closed 8 years ago.

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?


AFAICT, it does not support multiple instances running at the same time.

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://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.


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):

"/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.

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

So I suggest first try the command, if it does not help, try script, fix your system, then use the command after.

0

精彩评论

暂无评论...
验证码 换一张
取 消