Generate an iOS signing certificate Learn how to generate the .p12 file used for signing your iOS app. A signing certificate is a digital identity used for code signing during the build and archive process. For more information, see Apple’s What is app signing?. Generate .certSigningRequest file On your macOS device, launch Keychain Access. From the Keychain Access menu, choose Certificate Assistant, then select Request a Certificate From a Certification Authority. Enter your email and name, but leave CA Email Address blank. Then choose Save to disk and select Continue. Select Save to download your .certSigningRequest file. Generate .cert file Open Apple Developer, select Certificate, Identifiers and Profiles, then Create new certificate. Choose Apple Development, then select Continue. Select Choose File, choose the .certSigningRequest file, then select Continue. Select Download to download your .cert file. Generate .p12 file On your macOS device, launch Keychain Access. Select Certificates, then drag and drop your .cert file into the Certificates page. Right-click your .cert file, then select Export <your-cert-file>. Choose the Personal Information Exchange (. p12) file format, then select Save. Enter a password to protect the certificate. If you don’t want to enter a password, leave the field blank and select OK. Add .p12 file to Xcode project Note down the location of the .p12 file you created in the previous section. Launch Terminal on your MacOS machine and enter the below command: sudo security import <Path to the cert>/<Name of the cert>.p12 -k /Library/Keychains/System.keychain -A Replace <Path to the cert>/<Name of the cert>.p12 with the actual path and name of your .p12 file. Enter the admin password of the MacOS machine to continue. Enter the password inputted when exporting the certificate in the pop-up. If there is no password, leave the field blank and click OK. The certificate is now imported to the keychain. Next, follow this guide to add the provisioning profile associated with the certificate into Xcode.