IOS Dev: separates the Code Sign identity in xcode from VCs

Source: Internet
Author: User
Tags configuration settings

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.