How can I get the console logs from the iOS Simulator?

前端 未结 13 1587
感情败类
感情败类 2020-11-27 09:24

I want to see what happens in the iOS Simulator if I\'m not testing the app in Xcode.

For example, if I open a link in the Safari simulator, see what happens in the

13条回答
  •  没有蜡笔的小新
    2020-11-27 09:57

    If you are using Swift, remember that println will only print to the debug log (which appears in xCode's debug area). If you want to print to system.log, you have to use NSLog as in the old days.

    Then you can view the simulator log via its menu, Debug > Open System Log... (cmd + /)

提交回复
热议问题