One of the below commands will help for this
Depending on the runtime version, you can use one of:
xcrun simctl spawn booted syslog -w
xcrun simctl spawn booted log stream
tail -F "$(xcrun simctl getenv booted SIMULATOR_LOG_ROOT)/system.log"
If you're on macOS Sierra, you can also select the simulated device from within Console.app to see the logs.
References:
https://stackoverflow.com/questions/40456467/how-to-see-logs-when-running-app-in-ios-simulator-directly
Depending on the runtime version, you can use one of:
xcrun simctl spawn booted syslog -w
xcrun simctl spawn booted log stream
tail -F "$(xcrun simctl getenv booted SIMULATOR_LOG_ROOT)/system.log"
If you're on macOS Sierra, you can also select the simulated device from within Console.app to see the logs.
References:
https://stackoverflow.com/questions/40456467/how-to-see-logs-when-running-app-in-ios-simulator-directly
No comments:
Post a Comment