A valid provisioning profile matching the application's Identifier '' could not be found

梦想的初衷 提交于 2019-11-29 14:49:20

For your two points:

1) You should have com.LaneBob.yourappName in the info.plist file. For Ad-hoc distribution you can't have 'generic' names with wildcard characters. You don't need the beginning HASH part (4R7B8RY6Z1. in your case)

2)You pick code signing identity in XCode target preferences. 'LEFT' click on project, then go to the target of your app. Inside there, there are 'code signing identity' for different configurations. When you build and archive you typically build release mode and use distribution certificate.

All this can not solve your problem if you don't have provisioning profile installed in your mac. Just download it from the portal and double click on it to install it. Also with newer XCode you can just download all provisioning portals from organizer, by entering the user/password there.

Incidentally, I found you need to restart xcode sometimes to 'get' the keychain updates.

Hope it helps!

I had the same error message when I was trying to build an app on my iPhone. Everything seemed to be in order, I.e. the certificates were all valid and present and so on, but I just couldn't get it to work.

I just couldn't find the option "iOS team provisioning profile" in Project > Build Settings > Code Signing > Code Signing Identity - this was the main clue to a solution. If you can't see that option there, check your Xcode Organizer.

Inside it, go to Library > Provisioning Profiles:

Now what you should see if everything were right is this:

But if on the other hand you see an empty list, click the Refresh button in the lower right corner of the Organizer:

After said procedure, Xcode started churning out wonderful messages of "adding" and "finishing" and then my app appeared on my iPhone. The End.

Good luck!

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.

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