print() to console log with color

Xcode doesn’t support console coloring since Xcode 8.

But Since Xcode is fully unicode compatible, you can use emojis instead! for example you can use You can use ⚠️ for warning messages and 🛑 for error messages. (like the Xcode itself)

Or simply use these note books as a color:

📕: error message
📙: warning message
📗: ok status message
📘: action message
📓: canceled status message
📔: Or anything you like and want to recognize immediately by color

for example:

print("⚠️", "Touch is not disabled as expected")

🎁 Bones

Using this method will help you to find the logs in the source code as fast as ⚡️ by a simple eye scan:

Demo

And you can search for them 📱👁 to let the Xcode take you there. Take a look at this result comparison:

Custom emoji search

emoji search

vs

Word search

word search

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)