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:
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).
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.
