【问题标题】:how to see my print/NSLog outputs when using Instruments Automation, with simulator?使用 Instruments Automation 和模拟器时如何查看我的打印/NSLog 输出?
【发布时间】:2016-10-02 04:24:11
【问题描述】:

我是 Instruments 的新手,我正在尝试使用 Instruments Automation 将位置事件发送到我的 Xcode Swift 项目,该项目使用 MapKit,但使用的是 SIMULATOR(参考真实设备)。

我的工作是这样的:

  • 在 Xcode 中以 PROFILE 模式运行我的项目
  • 然后使用使用“setLocationWithOptions”的脚本进行仪器自动化

但是我在 Xcode 或 Instruments 中都没有看到我用来监控应用程序的正常日志输出(打印或 NSLog)?执行此操作时如何查看打印行输出?还是我应该采取不同的方法?

【问题讨论】:

  • 也许这会对你有所帮助。 stackoverflow.com/questions/5569134/…
  • @Greg 澄清一下,当您从 Instruments 跳转栏中选择 Console 时,控制台中什么都没有?
  • @naomimichiko - 实际上没有 - 他们在使用模拟器(参考真实设备)时尝试查看输出时遇到了同样的问题
  • @MarkSzymczyk - 控制台中没有任何内容... :(

标签: ios instruments ios-ui-automation nslog xcode-instruments


【解决方案1】:

Xcode 8

如果说模拟器,你需要先运行你的应用程序,然后通过你的仪器记录运行应用程序,例如僵尸。

录制需要选择的内容: select running application

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-24
    • 1970-01-01
    • 2020-08-05
    • 2013-10-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多