Error during real machine test: No matching provisioning profiles found, provisioning
1. the cause of the error is that the company started to perform a project. When testing a real machine, it used the apple developer account applied for by the company. now that the project is over and ready to go online, the customer asks to use the customer's own apple developer as the account to go online. Then, the customer's account is used for testing and the following error is returned.
Now the real machine is running, the certificate and description file have been downloaded, activated, and configured successfully. It is close to the last step, but it is stuck. because the development time is not long, I have never encountered such a problem. you can only check the information by yourself. The solution is not necessarily suitable, but you can learn from it.
2. cause of the problem:
A. if you read the instructions in the warning report, it means that there is a problem with your certificate or description file. That is to say, when you set the certificate or description file, it is caused by carelessness and errors, I will not elaborate here. There are detailed tutorials on certificate creation and configuration of description files. (If you cannot find it, contact me. I have collected and shared it with you)
B. Problems with Xcode internal settings
C. Create a useless description file (my problem is the third)
3. Solution
A. search for the certificate and description file, or delete the certificate and description file again. (Of course, when you try the second and third solutions, you can take this action .)
B. The problem here may be a small detail that you did not pay attention.
Click target --- General. The Team indicated by the arrow in the first Identity item selects the account name consistent with the account name in the Developer Center you log on. otherwise, you may notice that the yellow warning below the Team is the same as the previous warning. after selecting, you can click Fix Issue to solve the problem and the warning disappears.
Of course, if your Account is not found, it indicates that your Account has not been added. Expand the triangle behind the Team, click Add an Account. Open the following interface and enter the developer Account you want to test.
In addition, this problem is also caused by Xcode settings:
Whether published or tested, the configuration of the certificate and description file needs to be modified in four places
Note the comparison between the two images above and below. the above configuration is the certificate and description file under the Target, and the following is the Project. the two are different, and the positions of arrows are different.
C. finally, I am confused myself. I use the certificate under the customer account, but the description file uses the description file under the original company account. in the end, the project can run normally on the mobile phone. What a magic ?!!
I am very sure that I have created a test description file in the customer development account, but I don't know when, my original company account's description file actually appeared in the customer's test description file, and the above error will be reported when I create my own operation, the automatically generated description file is running properly.
This is why I feel that the descriptive file I created is useless. I still have doubts here. I feel that the two descriptive files overlap, resulting in an unrecognized error.