XCode expects a development certificate with my provisioning profile when I am actually trying to do a distribution.
More details
I am trying to push an update to an iOS app on app store, that was initially built by another developer using Flutter. Using flutter build ipa
and uploading the archive through XCode simply never worked, it always got stuck in the uploading screen. So I tried Transporter after getting an ipa with flutter build ios --release
[1]. Using automatic signing so far, Out of almost 50 tries, only one went through for some reason. The rest of the time I see the following error.
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.spoonmoney.app [Payload/Runner.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
Transporter error while uploading
Details of automatic signing
When I try to do manual signing with a valid provisioning profile which includes distribution cert, Xcode shows this error:
Things to note
- I tried clearing relevant certificates and profiles both from my Keychain access and developer profile and created new ones. No improvement.
- Tried clearing signing certificates in Flutter
flutter config --clear-ios-signing-cert
- I have an active developer program membership.