How to disable system log in Xcode
To disable system logs in Xcode, perform the following steps:
- In Xcode, go to
"Window" > "Devices and Simulators"
- Select the device or simulator you want to disable logs for.
- In the device's or simulator's detail view, click on the
Gear
icon at the bottom left corner. - Select
Edit Scheme
. - Under
Run > Arguments
, add the argumentOS_ACTIVITY_MODE
with a value ofdisable
. - Close the scheme editor and run your app again. System logs should now be disabled.