Error while reading test baseline file

When running Unit tests on my project, I get an error:

Error while reading test baseline file: "The file “05ACE933-24F8-449B-9949-77312B3070BC.plist” couldn’t be opened because there is no such file." at path: "/private/var/folders/qy/g9s46vp88xggk_001s62kxb00000gn/X/54A3BAF3-89F8-52E2-8575-47176446C08E/d/Wrapper/MyApp.app/PlugIns/MyAppTests.xctest/xcbaselines/05ACE933-24F8-449B-9949-77312B3070BC.plist"

This happened after a rebase / merge, so I must have accidentally deleted a file from the repository.

This only seems to happen on the 'My Mac (Designed for iPad) device. When I run the unit tests on my iPhone, all seems to be well.

How can I either remove the reference to the missing file, or reset the baselines in the project?

Kind regards, Wouter Wessels

Answered by dwn in 819483022

I had the same problem with one the unit tests on one of my MacOS frameworks. I have no idea what caused it, but clearing the build folder and recreating the test target seems to have resolved it.

Accepted Answer

I had the same problem with one the unit tests on one of my MacOS frameworks. I have no idea what caused it, but clearing the build folder and recreating the test target seems to have resolved it.

Same here ... thanks for the tip!

Error while reading test baseline file
 
 
Q