Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode iOS Development signing identity

I have a problem getting a iOS Development signing identity into Xcode. I have tried loads of things to get it working but I keep failing.

I have went the automatic way and let Xcode do it all but I kept going in circles where Xcode kept saying:

No signing identity found. Xcode can request a new iOS Development signing identity for you.

Followed by:

Your account already has a valid certificate. If you have your signing identity on another Mac, you can import a developer profile. You can also revoke the current certificate and request one again.

enter image description here

I have done many steps:

  • Removing my account from within Xcode's preferences.
  • removing everything from the key chain app.
  • clearing everything from within the developer member center (apple developer website)
    • removing all provisioning profiles
    • removed my device
    • revoked all all my certificates
  • restarted Xcode to perform a 'Clean' project from the Product menu.
  • even went into my project.pbxproj file to clear anything related to PROVISIONING_PROFILE
  • removed all provisioning profiles from my device.

After this I went back into Xcode:

  • added my account into the preferences section
  • clicked View Details
  • did a refresh
  • Xcode automatically creates two certificates
  • Xcode automatically creates provisioning profiles
  • Xcode only creates a single Signing Identity: only for iOS Distribution. This is my problem: I can not get an iOS Development signing identity. enter image description here

After not getting it to work I went the old fashion manual way:

  • first clearing everything like the above
  • created new certificates manually, downloaded them and added them to the key chain app. enter image description here
  • created new provisioning profiles manually, downloaded them and dropped them onto the xcode app icon. enter image description hereenter image description here At the end the result is the same; When I am in Xcode > preferences > accounts > view details:
  • I do have a distribution signing identity
  • I do NOT have a development signing identity

When I click the + button under the Signing Identities and choose 'iOS Development' nothing happens..

I have found lots of posts here on StackOverflow, I tried their suggestions but it won't work for me. Examples of other posts: here, here and here

I am working with the latest version of Xcode: 6.2. I am working on an app which is already in the App store.

Edited: I have also changed the code signing build settings of my project and target into Don't code sign and put it back to iOS Distribution for ad-hoc and iOS Development for Debug. enter image description here

like image 967
Brabbeldas Avatar asked Mar 21 '15 15:03

Brabbeldas


People also ask

What is my signing ID in Xcode?

Select your Apple ID and your team from the right side bar, then click on View Details... . A dialog will appear where you will see your code signing identities and the provisioning profiles. Under the signing identities locate the iOS Development and iOS Distribution profiles.

What is signing identity in iOS?

Signing Identity, Public & Private Key, Keychain Application Signing your app allows iOS to identify who signed your app and to verify that your app hasn't been modified since you signed it. The Signing Identity consists of a public-private key pair that Apple creates for you.

How do I enable signing in Xcode?

Open the project using Xcode. Select the root project directory, and go to the Signing and Capabilities tab. Here, you can either check Automatically manage signing or do the signing manually. If you check the Automatically manage signing checkbox, then you will just need to select the Team from the drop-down list.


2 Answers

It takes a long time, and we did all the above solutions and they didn't work at all so our team decided to remove Pod files and run pod install again. finally, our OTA uploaded ipa installed on the user's device. best Solution

  1. clean project menu > Product > Clean Build Folder and /Users/{you user name}/Library/Developer/Xcode/DerivedData
  2. go to your project directory and remove Podfile.lock ,Pods folder,pod_***.framework
  3. run pod install again
like image 70
Amir Ardalan Avatar answered Jan 02 '23 21:01

Amir Ardalan


Together with a very helpful person on the Apple Developer forums we have tried to figure this out.

I was so blinded by it not working, it never came to mind to try out and build another project and to see if that would work. I was completely focused on my certificates and profiles within the member center and my account details within xcode. When I did try to build another (random) project, it worked in one go. This told us it must had something to do with the Build Settings of that one specific project which xcode could not code sign.

At the end, in xcode I went to the Build Settings of my Target. Within the Code Signing section I changed the values of Any iOS SDK to point to a specific Identity in my Keychain instead of having them on automatic (iOS Developer / iOS Distribution). This fixed my issue and I was able to build/deploy to my device and I was able to upload a new build to iTunes Connect.

enter image description here

like image 24
Brabbeldas Avatar answered Jan 02 '23 21:01

Brabbeldas