reports icon indicating copy to clipboard operation
reports copied to clipboard

FB13288344: Control over a simulator's preferred languages in Xcode Cloud

Open DavidBrunow opened this issue 2 years ago • 0 comments

  • Date: 2023-10-19
  • Resolution: Open
  • Area: Xcode Cloud
  • OS: N/A
  • Type: Suggestion
  • Keywords:

Description

I've noticed that simulators running macOS Sonoma have more preferred languages configured than simulators running on macOS Ventura. Overall, I think this is great -- apps are not only built in the English speaking world. However this can cause some unanticipated problems for folks who use snapshot testing on their views. For a little background, snapshot tests are tests where an image is generated from a view and that image is stored in the codebase. Subsequent runs of the test will check that the newly generated image matches the image in the codebase and if they do not match it will fail the test.

I don't think it is obvious that adding preferred languages to a simulator would break snapshot tests but that is what is happening. Certain languages require larger line heights and those larger line heights are present even when the language is not the first language in the preferred languages. So simply having Arabic in the list of preferred languages changes the layout and therefore breaks some snapshots.

Could we have control over which preferred languages are on a simulator when running on Xcode Cloud? Barring that, could we get documentation of which languages are in the preferred languages as they change?

DavidBrunow avatar Oct 21 '23 01:10 DavidBrunow