iosxcodexcode10

Xcode 10 - Getting unit test log files


After running unit tests, I used to find two files in the Tests folder for the Derived Data of Xcode - StandardOutputAndStandardError.txt and TestSummaries.plist files. However, in Xcode 10 I'm unable to find these files. How can I get the test logs in Xcode 10.


Solution

  • StandardOutputAndStandardError.txt file, you are looking for, is now located in:

    Derived data
      \your project folder
        \Logs\Test
          \.xcresult file
            \Diagnostics
              \<YourAppNameUITests folder>
                \<YourAppNameUITests folder> 
    

    again and there it is.

    For <YourAppNameUITests folder> there is also a folder with log from simulator.