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
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 ...