문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top