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

前端 未结 5 1919
刺人心
刺人心 2020-12-15 05:38

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

5条回答
  •  清歌不尽
    2020-12-15 06:11

    I'm passing this along for the sake of completeness.

    I had tried "bobsmells" (and, sorry to hear that Bob) recommendation, but was still getting the same error. It was a guesstimate on my part to check the Build Settings in Xcode to see if there was anything that stood out as being a possible red flag ...

    As I had already created and could see my provisioning profile both on Apple's provisioning portal as well as within Xcode's Organizer Devices tab I knew the profile existed, and was in the proper locations (Xcode and the Portal).

    I simply went to the Project Navigator > Targets (your_target_name) > Build Settings > Code Signing, and noticed the value was "iPhone Developer" under the "Automatic Profile Selector (Recommended)" heading.

    The solution was to simply select the "iPhone Developer: (your_name_here)" located under the "iOS Team Provisioning Profile: * (for bundle itendifiers '*') heading.

    In other words, use the provision profile I just created. Perform a Clean, Build, then run it. That did the trick.

    Hope this helps someone ...

提交回复
热议问题