问题描述
是否可以同时调试/运行带有多个测试设备的Xcode iPhone / iPad应用程序项目,并查看所有的控制台输出?
我正在开发蓝牙应用程序,我想以完全活动模式进行测试,可以在控制台中看到NSLog等。至少有2台连接的设备。
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.
我可以看到,Xcode 4提供了一次运行多个调试会话的可能性,但控制台仅输出其中一个调试会话的日志。
有没有办法设置Xcode(方案中的一些构建/运行设置),以便能够同时查看连接和调试的多个测试设备的日志?
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?
推荐答案
似乎没有一个很好的做法。我发现一个黑客是,如果你有两个Xcode实例运行,你可以打开两个组织者窗口,每个都查看不同的日志
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:
打开< Xcode.app的路径> / Contents / MacOS / Xcode
这篇关于使用Xcode同时测试多台设备(iPhone / iPad)的控制台输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!