Xcode how to disable unwanted system logs

Debug console is critical part when we developing app. But the issue is it show system logs along with out app logs. Then it will be hard to differentiate what are our logs. We need to scroll and find . It’s tedious task. But there is a workaround for that. We can disable system log in xcode.

We need to scroll and find . It’s tedious task. But there is a workaround for that. We can disable system log in xcode.

To disable the system please follow below flows.

1. Go to Product menu

2. Click schema and selct edit schema

3. In the left panel select run.Then it show control related to run

4.In the right panel goto arguments tab.

5. There is environment variable section . Add OS_ACTIVITY_MODE and set value as disable and close the dialog.

Now run the app and the all system log will be gone. Now you are the owner of the console log 😄.

Remember

Turn this off if you need to show exceptions. It will hide exceptions also.

Learn SwiftUI before everyone

icon icon

Leave a Reply