On running a UI Test, I can see the .xcresult
file generated in ~/Library/Developer/Xcode/DerivedData
. I have some NSLogs in my application that I need to display as well. Does anyone know where is the path to get the application log or xcresult file?
Where can I find the xcresult logs from my application in an Xcode UI Test?
2.1k views Asked by gran_profaci At
2
The path your Xcode project's
xcresult
files as of Xcode 14.1 isSo if your username is
gran_profaci
, your app name isMyAwesomeApp
, your scheme name isAwesomeScheme
and you live in timezone UTC-5 your path would look something like this:Each test you run will create a new xcresult file with the corresponding parameters and current date.
You can directly open the DerivedData folder from Xcode by clicking on the icon displaying a right arrow inside a circle:
If you want to extract information you can use the xcparse command line tool, in your example to export the logs: