1

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

shim
  • 9,289
  • 12
  • 69
  • 108
William Hu
  • 15,423
  • 11
  • 100
  • 121

2 Answers2

2

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

shim
  • 9,289
  • 12
  • 69
  • 108
William Hu
  • 15,423
  • 11
  • 100
  • 121
1

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.

Tim
  • 19
  • 1
  • 1
    I had to set both *Application Region* and *Application Language* in my test plan configuration before exporting the localization catalog would include the relevant screenshots. – heckj Jul 29 '20 at 22:36
  • yeah, I was setting the application language of course :) – Tim Jul 31 '20 at 00:18