Code Sign error: a valid provisioning profile matching the application's Identifier … could not be found

狂风中的少年 提交于 2019-11-28 23:38:30

So after waiting 2 months for an answer from the iTunes team, which never came, I have figured out a way around this issue and got my app to upload. The key is to make the bundle identifier match the bundle id that is registered in iTunesConnect. In this case the bundle id in iTunesConnect was in the form of 1234567890.com.companyname.appname. Some how when I first created my app I had included the bundle seed id which from my research should not have been included when the app was created in iTunesConnect.

To resolve the issue, I created a new App ID in the provisioning portal in the form of 1234567890.1234567890.com.companyname.appname and then created a new distribution mobile provision based on this new AppID. I downloaded and installed the mobile provision in xCode Organizer. In the info.plist of my xCode project I set the bundle identifier to 1234567890.com.companyname.appname. This allowed xCode to match the mobile provision to the specified bundle identifier in the info.plist and successfully build and sign my app with a bundle identifier that matched the bundle id in iTunesConnect. In organizer I was able to validate and upload the app successfully.

In my case, I had to first BUILD the app with Cmd-B.

This popped up a keychain window access asking me to "Allow" (or "Always Allow") Xcode to access the keychain.

Only THEN could I actually run the program to launch it on my iPhone.

Apparently, hitting only run didn't do the trick.

(Btw, remember to first sign your app with the "iPhone Developer: Your Name ()" key.

Even it sounds odd that your bundle identifier has changed, there is one thing that comes to my mind that you could try.

Create a new provisioning profile, which's identifier matches the one you used to submit your first version of your app.

I had the same issue and with the advice of codeySmurf above I was able to reuse the same id and it removed that error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!