Reputation: 363
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
flutter config --clear-ios-signing-cert
Upvotes: 2
Views: 4397
Reputation: 1574
So you have just stumbled upon this black hole that I've also stumbled upon before and the only steps that have helped me are the followings:
~/Library/MobileDevice/Provisioning Profiles/
~/Library/MobileDevice/Provisioning Profiles/
folder. If you double click on a provisioning profile to install it, it loses its actual name and changes the name to its UUID making it undistinguishable from other profiles. So manually place the downloaded profile in ~/Library/MobileDevice/Provisioning Profiles/
Upvotes: 3