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?
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
the path most likely appears on the terminal
/Users//Documents/P/ios/build/<>/Logs/Test/Run-<…..>.xcresult
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: