Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show simulator logs? in IOS 12.0 & Xcode 10?

How to check simulator logs? I am running project in Xcode 10 and simulator iPad (6th generation) 12.0

I have checked in Xcode-> Window -> Devices and simulators -> select "simulator" But not showing simulator log

also i have checked in Simulator -> Debug -> Open system log... But not showing simulator log

like image 557
AtulParmar Avatar asked Oct 26 '25 09:10

AtulParmar


2 Answers

I have found solution for this issue, Open system console log on MAC

⌘ + space and type "console" -> press "Enter" to open system console log then select your simulator

You can see only log which is log using

NSLog("MyLog")

But, You can not see log which is write with print("MyLog")

like image 174
AtulParmar Avatar answered Oct 29 '25 00:10

AtulParmar


You have to use os_log function and checking the log in Console.app on Mac

like image 41
Quang Vĩnh Hà Avatar answered Oct 28 '25 23:10

Quang Vĩnh Hà



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!