I was facing the similar error.
I believe the Apple back-end has changed and has started applying a stricter rule to entitlement keys that take array values.
I believe the Apple back-end used to accept empty arrays for entitlement keys that took array values but now require the entitlement key to either not be present at all or to contain actual values.
Evidence to back this assertion:
- I have an entitlements file with a key for “com.apple.developer.icloud-container-identifiers” entitlement with an empty array like so:
<key>com.apple.developer.icloud-container-identifiers</key>
<array/>
- This was fine until just yesterday (I successfully submitted a build, and have submitted builds like this for more than a year).
The Fix:
Remove or Comment out the following line from the .entitlements file:
<key>com.apple.developer.icloud-container-identifiers</key>
<array/>
- The key was empty anyway so should not have an effect after being removed.
Now the TestFlight submission is successful.