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

前端 未结 13 1546
感情败类
感情败类 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条回答
  •  Happy的楠姐
    2020-11-27 10:08

    iOS 8 and iOS 9

    Under iOS 8 and iOS 9 this location is now:

    ~/Library/Logs/CoreSimulator/
    

    So, the following will work:

    tail -f ~/Library/Logs/CoreSimulator//system.log
    

    The DEVICE_CODE value can be found via the following console command:

    instruments -s devices
    

提交回复
热议问题