Xcode 11 XCTestPlan can't export screenshots

691 Views Asked by At

In Xcode 11, I created a xctestplan for exporting localized screenshots, but I can't select "Include screenshots" option. Like this image, the warning message is "Screenshot for localization issue."

enter image description here

If I check the report of the UI test, then I can see the screenshots files are there, and I can save them.

enter image description here

If I export it, in the "Notes" folder no screenshots, any help?

In the configurations of xctestplan, I set Automatic Screenshots -> On, and keep all, Localization Screenshots -> On

2

There are 2 best solutions below

3
On

I restarted Xcode and cleaned the project; it works finally!

2
On

I had a similar issue. Spoke to an engineer at WWDC20. In the xctestplan, it turns out that if you don't set the Application Region from System Region to a specific region for the different variants, the files generated end up missing information. Then a quick deletion of the app's folder in DerivedData fixed the issue.