查看直接在模拟器中运行的应用程序的 NSLog,而不是通过 Xcode
当我不通过 Xcode 运行代码时,有什么方法可以查看在 iOS 模拟器中运行的应用程序的控制台日志吗?我直接从模拟器中打开应用程序。我可以在某处看到打印的 NSLog 语句吗?
Is there any way I can see the console logs of an app running in the iOS simulator when I do not run the code via Xcode? I am directly opening the app from within the simulator. Can I see the NSLog statements printing somewhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的。这是来自 工具工作流程指南iOS:
Yes. Here's a quote from Tools Workflow Guide for iOS:
来自 BYU CocoaHeads:
From BYU CocoaHeads:
我可以设法在 MAC 操作系统中的“控制台”应用程序中查看日志。
I could manage to see the logs in "Console" application in MAC OS.