[app-attest-env] Fix App Attest environment mismatch for distribution builds

com.apple.developer.devicecheck.appattest-environment was hardcoded to
"development" for every build, including the App Store/TestFlight
distribution build. Apple's App Attest servers validate this claim
against how the app was actually signed/distributed, so a "development"
claim on a real distribution build fails - guest session handshake
never gets past the challenge step, no store/city data ever loads.
Parameterized per configuration: development for Debug, production for
Release, via an APP_ATTEST_ENVIRONMENT build setting.
This commit is contained in:
Daniel Arantes Loverde
2026-07-31 13:41:31 -03:00
parent 32f12d6c0e
commit 0cf3ab7b4f
2 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>com.apple.developer.devicecheck.appattest-environment</key>
<string>development</string>
<string>$(APP_ATTEST_ENVIRONMENT)</string>
</dict>
</plist>