iOS Simulator log in terminal, instead of Xcode
If you work with Xcode in full screen mode, running your App simulator always brings you back to one of your desktops. I you want to look in this situation at logs, you need to come back to Xcode or open his new window near the iOS Simulator. First method takes you away from your App UI, second one gives uses space on your screen for unwanted Xcode UI elements. It's not comfortable at all.
There's always a third method. You can show your logs via terminal with command like:
tail -f ~/Library/Logs/iOS\ Simulator/7.0/system.log
You must only change the path for desired iOS Simulator version (in example it's 7.0
).
To give yourself faster access to logs via terminal, you can add an alias to your .bash_profile
file by typing:
echo "alias simulatorlog='tail -f ~/Library/Logs/iOS\ Simulator/7.0/system.log'" >> ~/.bash_profile
After it you can simply type simulatorlog
into terminal window to access the logs.
Enjoy.