On our CI (GitHub Actions) we are signing our .ipa
with codesign
and after that uploads the resulting .ipa
with altool
to TestFligt.
The problem is that the entitlements added by codesign
no longer appear when we view the build on TestFlight.
The app requires entitlements for push notification and for associated domains.
codesign -s Distribution prod.entitlements prod.ipa
Immediately after we do a
codesign --verbose --display --entitlements -
and the entitlements show fine.
Next command is
xcrun altool --upload-app --type ios -f prod.ipa --apiKey $api_key_id --apiIssuer $appstore_api_key_issuer
To us it seems like altool
strips the entitlements from the .ipa
.
What are we doing wrong?