Today, when debugging a real machine, I encountered such a problem:
This product type must be built using a provisioning profile, however no provisioning profile matching both the identity "iPhone Developer" and the bundle identifier .....
As shown in:
It was very painful and found that it was a demo on the Internet or a process of its own. This error will be reported during a real machine test.
A certificate error occurs.
However, I have always used a General Certificate-iOS Team Provisioning Profile :*. No problem before. When I came back from the last lesson, something went wrong.
Confusing.
Then I looked at Organizer and found that the general certificate still had a green light. (Valid profile)
This is even more confusing ..
Clearly, the general certificate is okay. Clearly, I have nothing to do. Why not.
Then I was lucky enough to read the iOS Certificates. Black Hands found...
The previously applied Certificates certificate was deleted, resulting in an error.
(You can try to delete it and it will report such a warning)
Well. The problem is found, and the following is the solution. It is nothing more than re-generating a general certificate.
1. Delete the original certificate. Delete all previous certificates in the organizer (there is a "-" sign below ).
2. Generate a certificate request.
3. Generate a certificates certificate.
4. Download the certificate to your local device and double-click it.
5. reselect the real machine to run. In the pop-up warning box, select ---- fix issue. A new general certificate is automatically generated.