Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing with console output for multiple devices (iPhone/iPad) at the same time with Xcode

Is it possible to debug / run Xcode iPhone/iPad application project with multiple testing devices at the same time and see console outputs for all of them? I am developing bluetooth application and I would like to test it in full activity mode, being able to see NSLog, etc.. in console for at least 2 connected devices.

I can see that Xcode 4 provides possibility to run multiple debug sessions at a time, but console outputs only logs for one of them. Is there a way to set up Xcode (some build/run settings in the scheme) to be able to see logs for multiple testing devices connected and debugged at the same time?

like image 384
Lukasz Avatar asked Apr 05 '11 19:04

Lukasz


2 Answers

I know this is an old question, and the above method of using the console works, but I just discovered a method I like better (I don't really like working with two windows all the time, especially with full screen Lion).

Run the debugger on both devices, then you can switch between the two just above the logging console.

switch between device logs

Select your device and it will show the corresponding logs below

like image 145
Joshua Goossen Avatar answered Sep 18 '22 17:09

Joshua Goossen


There doesn't seem to be a nice way of doing it. One hack that I've found is that if you have two instances of Xcode running, you can have two Organizer windows open, each viewing a different log

Launch the 2nd instance using Terminal:

open <path to Xcode.app>/Contents/MacOS/Xcode

like image 41
pheelicks Avatar answered Sep 19 '22 17:09

pheelicks