How do you print something to the console of Xcode
, and is it possible to view the Xcode
console from the app itself?
Thanks!
@Logan said it perfectly. but i would like to add an alternative here,
if you want to view logs from just your application then you can make a custom method that keeps saving the log to a file in
documents
directory & then you can view that log file from your application.
There is one good advantage for developers of the app after the app has been released & users are downloading it. Because your app will be able to send logs & crash reports to the developers (of course with the permissions of the device user !!!) & it'll be the way to improve your application.
Let me know (To other SO users), if there is another way of doing the same thing. (Like default Apple feature or something)
Let me know if it helps or you want some more idea.