Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing iOS app with someone else's developer certificate

I am developing an app with my friend and I need to sign with his identity for testing push notification system. Here is what we did:

  • I've sent my UDID to him, he added my UDID to his devices
  • He created a new provisioning profile for our bundle ID, including my UDID for use with his developer certificate
  • He sent the provisioning profile to me.
  • I've added provisioning profile to my device and Xcode.
  • He exported his developer certificate (with private key) in Keychain access and sent it to me
  • I've imported his certificate successfully
  • I've selected the provisioning profile that he sent at Xcode

I've tried to run the app and it said that no valid signing identities were found for that provisioning profile. Then I've tried to type the p12 file into the certificate by clicking Other (Xcode couldn't find any certificate valid for that provisioning profile by itself) but it couldn't sign:

Code Sign error: No codesigning identities found: No codesigning identities
(i.e. certificate and private key pairs) that match the provisioning profile
specified in your build settings (“tanisalim”) were found.
CodeSign error: code signing is required for product type
 'Application' in SDK 'iOS 7.0'

Here is my project configuration:

enter image description here

How can I codesign the app with my friend's certificate?

like image 440
Can Poyrazoğlu Avatar asked Feb 04 '14 16:02

Can Poyrazoğlu


People also ask

Can I share iOS app without developer account?

First off, yes, you do still need an Apple Developer account if you want to distribute your app in the App Store.

Can you transfer an app from one Apple Developer account to another?

To transfer an app, just go into your Developer Account and on the App Summary page, click on the Transfer App button. Only the team agent can initiate this process. The next screen will verify that you meet all the criteria for transfer.


1 Answers

First of all, if you're collaborating during development then your friend should add you to his account as a developer and add your certificate to the development provisioning profile.

To do this he needs to invite you to his developer account, then you create your certificate. See Apple's App Distribution Guide

However, if you just want to use his identity, I would instead open his p12 file which will import it into your keychain. I don't think typing the path p12 into the Code Signing Identity works.

Make sure you've got the WWDR certificate installed, check the app bundleID matches that of the the provisioning profile, restart Xcode for good measure and then you should be able to select his code signing identity and sign your app.

like image 109
Rhythmic Fistman Avatar answered Nov 04 '22 15:11

Rhythmic Fistman