I was trying to print my Xcode console log into an UITextView inside one of my app pages.
And I want the log info can be updated in real time just like debugging the app when I connect my iPhone to the Xcode console.
(I do this because I want some testers in my company can test the APP without connecting the iPhone to the Mac.In this way they can view the log info inside the app.)
Is there a way to do it?
I have checked few solutions like: redirect NSlog to file which is an old fashion way.
Now in iOS10, apple is using Unified Logging and Activity Tracing I watched the new video
https://developer.apple.com/videos/play/wwdc2016/721/
and I also checked the links below.
https://developer.apple.com/reference/os/logging?language=objc
but I still have no idea how am I gonna do this?
Apple docs seems said that the log messages can only be viewed via
Xcode's console, Console application, or via the `log` tool.
But how can I print all my console logs into one of my APP pages and make sure the log info is being update in real time?
Anyone can show me some sample objective-c code or swift code how to do this exactly?
Thanks so much!