How to disable system log in Xcode

To disable system logs in Xcode, perform the following steps:

  1. In Xcode, go to "Window" > "Devices and Simulators"
  2. Select the device or simulator you want to disable logs for.
  3. In the device's or simulator's detail view, click on the Gear icon at the bottom left corner.
  4. Select Edit Scheme.
  5. Under Run > Arguments, add the argument OS_ACTIVITY_MODE with a value of disable.
  6. Close the scheme editor and run your app again. System logs should now be disabled.