Xcode6: Run Two Instances of the Simulator

Xcode6: Run two instances of the simulator

You can run two instances of the iOS simulator from the command line. They won’t be attached to Xcode debugging—indeed, it seems only to work if you do it without Xcode running at all.

First, you need to run the app in the simulator from Xcode, in order to get it installed in the simulator. Make sure you’re running the same simulators you’ll ultimately be using

Now open a Terminal window, and do this.

cd /Applications/Xcode.app/Contents/Developer/Applications
open -n iOS\ Simulator.app
open -n iOS\ Simulator.app

Update for Xcode 7: With Xcode 7 the application name of the simulator has changed, so it's this instead:

cd /Applications/Xcode.app/Contents/Developer/Applications
open -n Simulator.app
open -n Simulator.app

When the second one launches you’ll get an error alert. Just dismiss it and select a different device from “Hardware” » “Device”. Now you have two simulators running, and whatever apps you already installed in them from Xcode will be there.

Run two instances of an SFML C++ app in Xcode

I have never done this with XCode, but with any other IDE I would simply open the project twice, so two XCode instances are running, both on the same folder. That way you have "shared" code and your changes are automatically there when you recompile and restart both instances.

how to run two simulators on xcode 11?

You need to use File>Open Device to open a new Simulator in the Xcode 11 Simulator app.

You can only run an app from Xcode on 1 simulator at a time. However, you can install the app on 2 different simulators, then you can manually launch it on one of the 2 (or both).

How to run multiple simulators on Xcode 9?

I solved my problem, it's "very simple" :]

On the simulator, you must choose a new device from Hardware > Devices. The new instance will starts.

Then, choose your model on Xcode.

Here is the solution.

iOS simulator test multi-player games

Xcode9 will support running multiple simulator at same time.

Is there a way to simulate multiple iphones using xcode/iphone sim?

As near as I can tell, not only can you not have multiple instances of the simulator running, but when time comes for actual device testing you can't have multiple instances of the debugger running either.

This means to do multi-device apps, you'll need to have a single Mac assigned to a single iPhone/touch device (or simulator instance) each running your app.

I've started looking into whether VMWare or Parallels can somehow be brought into this, but there's not much that can be done without hacking the OS.

I suggest filing a feature request with http://bugreporter.apple.com.



Related Topics



Leave a reply



Submit