为什么当我连接 iPhone 时 XCode Organizer 控制台有时是空的
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2965767/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why is XCode Organizer console sometimes empty when I connect my iPhone
提问by toofah
When testing my iPhone app I have found it incredibly useful to log information to the console window. I think it is amazing that I can send out an adhoc build to my co-workers and if they experience problems I am able to plug their iPhone into my mac and grab their console output. However, sometimes the console window is blank when we do this. Why is this the case? The code has been built with logging enabled. Besides that, it seems that the console output, when I see it, contains information about not only my app, but other iphone system logging.
在测试我的 iPhone 应用程序时,我发现将信息记录到控制台窗口非常有用。我认为我可以向我的同事发送一个临时构建,如果他们遇到问题,我可以将他们的 iPhone 插入我的 mac 并获取他们的控制台输出,这真是太神奇了。但是,有时我们执行此操作时控制台窗口是空白的。为什么会这样?代码是在启用日志记录的情况下构建的。除此之外,当我看到控制台输出时,它似乎不仅包含有关我的应用程序的信息,还包含有关其他 iphone 系统日志记录的信息。
Thanks for any insight you can provide.
感谢您提供的任何见解。
回答by toofah
It looks like if I restart XCode then the console gets populated properly. Must be a bug in XCode, but restarting seems to always work.
看起来如果我重新启动 XCode,那么控制台就会正确填充。一定是 XCode 中的错误,但重新启动似乎总是有效。
回答by JosephH
It seems to be a new bug in 3.2.3 - older versions worked fine.
这似乎是 3.2.3 中的一个新错误 - 旧版本运行良好。