views:

1142

answers:

6

I'm planning out a game that requires multiple users and I was wondering if there's a way to fire up multiple instances of the iPhone Simulator. I didn't see anything in menus or in Google search results, but I just wanted to make sure I wasn't missing anything.

A: 

Hmm...I don't think you are missing anything here. As far as I know there is no technology within the SDK that is able to emulate multiple devices -- though that would be a useful feature to have. I think your only options would be to get a second iPhone OS device, or get a friend who also has an iPhone OS device to let you use it for testing.

RexOnRoids
+1  A: 

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.

Ramin
A: 

and the Android SDK allows this :)

should be a comment
RCIX
A: 

Technically it is possible according to this http://www.aquaconnect.net/?p=1497.

DS
+1  A: 

Another option (albeit probably overkill) if you have a Mac OS X server license is to virtualize an instance of Mac OS X Server, and run a second simulator in the VM.

Mike
A: 

It is possible but only with multiple users.

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

Assuming you have two projects (P1,P2) which you want to debug simultaneously, do as follows.

Steps to set up:

  1. Create a new user (U2) on your Mac
  2. Give it R/W access to P2, especially to its build folder.
  3. Download the launcher app from the site above and copy it to Applications.

Steps to debug:

  1. Close Xcode and the simulator if running
  2. Launch the iPhone Launcher.app with U1.
  3. Start Xcode with U1, load P1, start debugging.
  4. Launch the iPhone Launcher.app with U2.
  5. Start Xcode with U2, load P2, start debugging.

Unfortunately it's a P.I.T.A. having to change users every now and then but so far I haven't found any better solution. Hope this helps.

lvsti