During iOS development, each person has a different developer Certificate/private key. The app can run on the iPhone only after the code is signed using this private key. The configuration file used in the project to determine which private key signature to use isproject.pbxprojBecause it also records a lot of other information in the project, it often appears in the version control system, so that only one person can successfully sign. Fortunately, we can use.xcconfigFile to remove the configuration.
Create a new file (CMD + n), select Configuration Settings file in other, and create a new configuration fileCodeSign.xcconfig. Add a line to this file:
Code_sign_identity
= IPhone developer: renjia Road (xxxxxxxxxx)The certificate name can be found in keychain access.
Then delete the originalproject.pbxprojThe signature is directly in
Delete the project and target files in build settings. Delete the project and target files (CMD + Delete ).
Finally, in the info of the project, we can see the configuration column. In the based on configuration file, select the created file Codesign.
Finally, it should look like this in build settings: (the project and target columns are empty)
Do not setCodeSign.xcconfigCheck
In.