Logs not getting printed in device
I have some NSLog statements in my code and I am putting the app on someone's device and now I want to see the logs generated from my NSLog statements. When I attach the device with my machine and open the device logs from organizer of XCODE, I am not seeing the log statement printed by my code. However, if I install and run the application keeping the device atta开发者_高级运维ched with my machine logs gets printed on console.
What could be the issue.
Try using the Console application. It gives you all NSLog statements. I have faced this issue of not getting the device logs at times. Syncing the device usually solves the problem.
精彩评论