`Provisioning profile (id: xxx) is no longer valid` on every build

I get Provisioning profile (id: xxx) is no longer valid on every build. This can be circumvented by setting EXPO_NO_CAPABILITY_SYNC=1. I suspect there is an issue together with Apple Sign-In, since the output for builds with invalidated provisioning profile contains ✔ Synced capabilities: Enabled: Sign In with Apple. I’m setting ios.usesAppleSignIn: true in app.json.

Can anybody point me in a direction to prevent issuing a new provisioning profile for every build other than setting EXPO_NO_CAPABILITY_SYNC=1?