Last active
December 24, 2015 15:09
-
-
Save twobitlabs/6817817 to your computer and use it in GitHub Desktop.
Redirect stderr from iOS simulator to a file. Add this to your main.m. Then you can filter the output with tail -f /tmp/myapp.log | grep "foo"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#warning Don't commit me | |
NSString *logPath = @"/tmp/myapp.log"; | |
freopen([logPath fileSystemRepresentation], "a", stderr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment