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:
- Create a new user (U2) on your Mac
- Give it R/W access to P2, especially to its build folder.
- Download the launcher app from the site above and copy it to Applications.
Steps to debug:
- Close Xcode and the simulator if running
- Launch the iPhone Launcher.app with U1.
- Start Xcode with U1, load P1, start debugging.
- Launch the iPhone Launcher.app with U2.
- 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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…