Turn off excessive logging in Xcode 8

Xcode 8 shows lots of logging message in the console window when you run the app. If you have any print statement in your app module then it can easily get lost in these warning messages.

One of the solution to avoid this excessive logging is to add a property under enviromental variable section. Navigate to Product menu and select Scheme from the menu list then Edit Scheme (Product -> Scheme -> Edit Scheme )

In the Scheme screen, select Run option. Navigate to Environment Variables section and add new variable OS_ACTIVITY_MODE with value as disable

This shoud prevent these warning/logging messages in Console window. This property has to be configured for each project in Xcode, what would be nice to have is a single configuration in Xcode for all projects 🙂

 


Comments

2 responses to “Turn off excessive logging in Xcode 8”

  1. Sandesh sardar Avatar
    Sandesh sardar

    Nice

  2. Thank you! I’ve not found any use for those comments but they sure clutter and confuse the debugging process.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.