Xcode 8.1 “No matching provisioning profiles found

2019-04-03 19:00发布

I'm testing my app with TestFlight but I can't upload my archives after updating to MacOS 10.12 and Xcode 8.1.

When I archive my app, click on "Upload to App Store...", select my Development, I get this error.

No matching provisioning profiles found for "Applications/app.app"

None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups.

What I've tried so far:

  1. Reopening Xcode (Many times)
  2. +, > select team > remove every provisioning profile > re-download every provisioning profile (Reopening Xcode after each step)
  3. Re-downloaded and installed my certificates and provisioning profiles
  4. Removing every provisioning profile and building the app

4条回答
地球回转人心会变
2楼-- · 2019-04-03 19:12

I had this same error when my Xcode wildcard profile expired. Xcode didn't automatically renew it even though everything was set to automatic.

I logged in to the the portal, edited the XC: * profile, hit generate and then downloaded the resulting certificate. All good after that.

查看更多
孤傲高冷的网名
3楼-- · 2019-04-03 19:16

None of the other answers worked for me.

I had to delete all certificates from KeyChain, and also revoke them in Apple Developer portal. Then manually request a Distribution certificate in KeyChain. Upload it to the Developer portal.

XCode (8.3) must be stopped because it keeps creating certificates as they are being deleted from KeyChain.

Also, KeyChain burped and suddenly had a whole bunch of certificates and keys that it wasn't showing before. I don't know why that happened. Some were expired, which may have been causing the original problem. I deleted them all too.

Finally, XCode was happy to Archive, and Upload to iTunes. Only two hours wasted this time.

查看更多
甜甜的少女心
4楼-- · 2019-04-03 19:20

On Xcode's Capabilities screen, turning a capability On and then Off will fix the issue.

查看更多
神经病院院长
5楼-- · 2019-04-03 19:22

Use the automatic option provided in Xcode just add the relevant account team in the Xcode and let Xcode manage the signing process. Then go for Archive and select proper options while making archiving.

查看更多
登录 后发表回答