I am developing an iPhone app. Is output of NSLog written in a file in iPhone?
I am in situation that if I didn’t write NSLog, my app would not work. I don’t care it is written in my iMac. But I care if it is written in iPhone.
I am developing an iPhone app. Is output of NSLog written in a file
Share
The
NSLog()outputs text to the console, which can be read by the users on their devices by downloading some Console-app. It is suggested that you don’t useNSLog()for anything else than error reporting in the finished products, but it’s fine during testing.Here is an approach you could do to make sure the NSLog’s outputted are only being called in the finished app: http://joshhighland.com/blog/2010/04/10/dont-use-nslog-anymore/