Hide strange unwanted Xcode logs

Matheus Mello
Matheus Mello
September 2, 2023
Cover Image for Hide strange unwanted Xcode logs

šŸ“ Hide strange unwanted Xcode logs

Are you tired of those strange unwanted logs cluttering your Xcode console? 😩 Don't worry, you're not alone! Many developers face this issue when working with Xcode 8+ and creating a new blank project.

šŸ¤” The problem: Strange unwanted logs

When running your application in Xcode 8+, you might come across pesky logs like these:

2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, enable_level: 0, persist_level: 0, propagate_with_activity: 0
2016-06-13 16:33:34.406323 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.409564 TestiOS10[8209:100611] subsystem: com.apple.UIKit, category: HIDEvents, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 16:33:34.504117 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.548023 TestiOS10[8209:100607] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 16:33:34.568458 TestiOS10[8209:100608] subsystem: com.apple.FrontBoard, category: Common, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

These logs may seem strange and unwanted, but they actually serve a purpose. They provide information about different subsystems and categories within your app. However, for most developers, these logs are unnecessary noise that makes debugging more difficult.

šŸ› ļø Easy solutions to hide the logs

Luckily, there are a few simple solutions to hide these strange unwanted logs in Xcode:

  1. Filtering the logs: Xcode allows you to filter logs based on various criteria. To filter out these unwanted logs:

    • Open the Xcode console and click the filter icon located on the right side of the console panel (looks like a funnel).

    • In the filter options, uncheck the checkboxes next to the subsystems or categories responsible for the unwanted logs (e.g., UIKit, BaseBoard, FrontBoard).

  2. Edit your scheme: Another solution is to modify your Xcode scheme to exclude these logs during the build and run process:

    • Go to the "Product" menu in Xcode.

    • Click on "Scheme" and then "Edit Scheme".

    • In the left panel, select "Run".

    • Go to the "Arguments" tab.

    • Add the following environment variable to the "Arguments Passed on Launch" section: -NSObjCMessageLogging=YES.

    • Click "Close" to save the changes.

With these solutions, you can hide those unwanted Xcode logs and focus on the relevant information for debugging your app.

šŸ’¬ Join the conversation!

Have you encountered these strange unwanted logs before? How did you handle them? Share your experiences and any additional tips you have in the comments below. Let's help each other make Xcode development smoother and more enjoyable! šŸ˜„šŸ’»

Remember, coding is fun when you can focus on what matters most! Happy debugging! šŸš€āœØ

Take Your Tech Career to the Next Level

Our application tracking tool helps you manage your job search effectively. Stay organized, track your progress, and land your dream tech job faster.

Your Product
Product promotion

Share this article

More Articles You Might Like

Latest Articles

Cover Image for How can I echo a newline in a batch file?
batch-filenewlinewindows

How can I echo a newline in a batch file?

Published on March 20, 2060

šŸ”„ šŸ’» šŸ†’ Title: "Getting a Fresh Start: How to Echo a Newline in a Batch File" Introduction: Hey there, tech enthusiasts! Have you ever found yourself in a sticky situation with your batch file output? We've got your back! In this exciting blog post, we

Cover Image for How do I run Redis on Windows?
rediswindows

How do I run Redis on Windows?

Published on March 19, 2060

# Running Redis on Windows: Easy Solutions for Redis Enthusiasts! šŸš€ Redis is a powerful and popular in-memory data structure store that offers blazing-fast performance and versatility. However, if you're a Windows user, you might have stumbled upon the c

Cover Image for Best way to strip punctuation from a string
punctuationpythonstring

Best way to strip punctuation from a string

Published on November 1, 2057

# The Art of Stripping Punctuation: Simplifying Your Strings šŸ’„āœ‚ļø Are you tired of dealing with pesky punctuation marks that cause chaos in your strings? Have no fear, for we have a solution that will strip those buggers away and leave your texts clean an

Cover Image for Purge or recreate a Ruby on Rails database
rakeruby-on-railsruby-on-rails-3

Purge or recreate a Ruby on Rails database

Published on November 27, 2032

# Purge or Recreate a Ruby on Rails Database: A Simple Guide šŸš€ So, you have a Ruby on Rails database that's full of data, and you're now considering deleting everything and starting from scratch. Should you purge the database or recreate it? šŸ¤” Well, my