I am trying to build a release version of the app, I have downloaded and installed the distribution certificate and the right provisioning file but whenever I try to build locally it succeeds but when I try to upload it using Transporter I get the following error: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.cozycare.app [Payload/cozy.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." The strange part is that if I build using cloud it works properly. Is there anything I should change in my xcode configuration? Or do you suggest anything else? I have spent the last 2 days trying to fix this.
Invalid Provisioning Profile when building for release
1.6k views Asked by denied At
2
There are 2 answers
0
On
I followed this answer which 100% works.
Just get Xcode to redownload them by clearing out ~/Library/MobileDevice/Provisioning Profiles. See https://twitter.com/hunter/status/1513960632059510784
1- close Xcode
2- to clear it out, in terminal:
$ rm -rf ~/Library/MobileDevice/Provisioning\ Profiles/
3- open Xcode, go to Preferences > Accounts > Select your team > then select Download Manual Profiles
I managed to solve the issue by changing the configuration for Signing & Capabilities and Build Settings in Xcode.