Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
395 views
in Technique[技术] by (71.8m points)

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

I'm trying to test my app on my device and am hitting the error stating "A valid provisioning profile matching the application's Identifier 'com.mycompany.MyApp' could not be found". I've read many similar posts here on SO but none have been able to help.

What I've done so far:

  • created a valid Provisioning Profile on the Provisioning Portal. When I look at the App ID of the profile, it is 10CHARSEED.com.mycompany.MyApp (where 10CHARSEED is obviously the Apple-generated seed id)

  • downloaded and installed the profile in XCode Organiser, under the device name. XCode has the green tick and tells me it's a Valid Profile.

  • checked that the Info.plist Bundle Identifier matches this. It does, exactly.

  • manually looked inside the project.pbxproj file for references to "PROVISION" but there are none (some of the other solutions I found on SO said to remove these lines, but obviously I don't have any to remove).

  • Quit Xcode and restarted.

  • removed and re-added the Provisioning Profile in Organiser.

Any ideas?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Ok, solved. The problem was to do with permissions. I finally found the menu option in the Organiser that says Refresh from Developer Portal (which is strange because the Prov Profile I'd just installed came from the portal, so I'm not sure why it would be any different). Anyway I clicked it and it asked for my Apple ID, and then after a minute it came back and said that I didn't have permission to add App IDs and to get an admin from my team to do it. So illogical given that I could install them manually under my account. Anyway, I just got my admin to make my membership also an admin, which he was happy to do because I've been bugging him all day during the provisioning process. After doing that, I again refreshed from portal and it gave no error, then I was able to build and deploy to the device.

Refresh from Developer Portal Option


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...