Copy a program from a colleague and install the certificate (that is, the file with the extension. p12) and the Provisioning Profile file of devices (that is, the file with the extension. mobileprovision ). As a result, the following error still occurs when the real machine runs:
Solution:
Code Sign Error: Provisioning Profile can't be found.
In the project folder, find the project file and right-click *. the xcodeproj file displays the package content and uses "text editing" to open the project. search for the pbxproj file, such as PROVISIONING_PROFILE = "XXXXXXXXXXX", delete "XXXXXXXXXXX", and fill in the profile serial number on your computer. The correct serial number can be found in the following method:
1. Double-click to run and install the Provisioning Profile file. Under XCode's Organizer, find the Device option on the central tab and click it to view the installed profile. For example:
2. Right-click the desired profile and select reveal profile in finder. All your profile files are listed in the finder. The file name is what you need. For example
Run the program again. Everything is done!