Easy way to see application logs after UITests

Hello all !

I am starting to explore UI testing with XCode and was wondering if there's a simple way to access application logs directly in XCode after the session ends. We currently have access to many things (captures, video, xctest logs) in report UI (see capture) but I am surprised we don't also have the app logs.

I know there's a way of accessing it via terminal in .xcresult via a custom script (https://github.com/ChrisMash/XCResultExtractor) but I find it a little tedious and unfriendly as it gives raw .txt

I also noticed I can switch processes in XCode console to see app logs but it switches back to xctest logs once the test ends ^^'

Is there some "see app logs" button I missed in XCode UI or is XCResultExtractor our only option ?

Thank you in advance !

Hi! There is a small button with a "page" icon to the right of Activities/Run.

It shows or hides diagnostic logs, which is probably what you are looking for. Node that logs are presented in a raw, text format.

Hello ! Thank you for your answer but I'm afraid those are the logs of the UITest but not the logs of the application itself. Application logs are interesting in order to understand what could have gone wrong inside the app ^^

Easy way to see application logs after UITests
 
 
Q