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

前端 未结 13 1550
感情败类
感情败类 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:53

    [Loggers]

    You can use the Console application(select your device in Devices) on your Mac to see a log message that were sent using NSLog, os_log, Logger (you will not see logs from print function).

    Also please check (Action -> Include Messages)

    Please note that if you want to see a log from WebView(UIWebView or WKWebView) you should use Safary -> Develop -> device

    [Find crash log]

提交回复
热议问题