Valid signing identity not found no ice what's wrong - ios

To connect my device to this developer profile, I tried to make this steps:
I added the iPhone in the section "Device"
I clicked on the section "Provisioning Profiles"
I clicked on the button "+"
I choose the kind of certificate I need (iOS App Development)
I choose an App ID
I choose the certificate
I downloaded the file generated
I clicked on this file and it open Xcode Organizer
Here I'm having issue: when I go to Organizer -> Provisioning Profile, I see the profile I generated, but it says "Valid signing identity not found". What's wrong with my steps?
Here's the pic in which you can see my issue:

You get the error because your private signing key is not in your Mac's Keychain. At some point you created a public/private key pair and committed it to Apple through the provisioning portal in iOS Dev center. If you still have the private key in another computer you can move it to your current computer using Keychains export/import functions. Another option is to create a new private/public key pair.

Related

make revoke certificate to valid in xcode 6.1

I am very new in iOS development. I make wrong things for my certificate in xcode and now it become revoke for my account.
My iOS Development is Revoked. and in keychain Access all certificates are gone.
What could I do to be valid again?
Log in to your Apple developer account and upload a new certificate signing request to get a valid certificate. How to do that check this link:
https://mobiforge.com/design-development/deploying-iphone-apps-real-devices
http://www.aquafadas.com/en/documentation/sample-page/developer-apple-com-2/generating-your-development-certificate/ (Old Link Dead)
1st Step (Apple developer site)
Go to this URL (Apple developer site):
https://developer.apple.com/devcenter/ios/index.action
Log in with your valid account.
On the right-hand side, there is a column with a heading "iOS
Developer Program". Select the "Provisioning Portal" section.
On the left-hand side, click the row of the column that is labeled
"Certificates"
Since I already have a certificate I'm not sure, but somewhere on
this page you should be able to click "Request certificate" or
something similar.
Wait for your new certificate, and then download and install it as
before
2nd Step (Xcode)
Revoke all current certificates and provisioning profiles
To invoke "Automatic Device Provisioning" open Xcode's "Window" menu
Organizer > Devices tab > "Provisioning Profile" sidebar under Library.
Check the "Automatic Device Provisioning" checkbox and click the
"Refresh" button. After clicking Refresh a dialog should appear
requesting your team member account credentials. It is important to
answer 'yes' when asked to create your iPhone Certificates if any are
needed. In that case, clicking "Submit
Request" will allow Xcode to create, download and install the
certificate(s).
According the 2nd step XCode is doing for you automatically below things
Prompts to create and install your "iPhone Developer" certificate
if one doesn't already exist in the iOS Portal
(for admin or agent roles) prompts to create and install your
"iPhone Distribution" certificate if one doesn't already exist in the
iOS Portal
Creates a Wildcard App ID if one does not already exist in the iOS
Portal
Creates, or updates with new devices added to the portal, your iOS
Team Provisioning Profile and installs that into your profile library
Syncs the profile library on your local machine with the profiles
on the iOS Portal
You can also refer apple link https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

Failing to create distribution app in Xcode

I'm trying to upload my app into App Store through Xcode, I read a few sites and set the code signing to "iOS Distribution" but when I tried to Archive, an error appear "No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found."
I've created a new distribution Provisioning Profile in developer.apple.com and link it to my app and selected the distribution certificate to it. I then downloaded this profile and manage to select it in the provisioning profile section in xCode->build settings->code signing. But now I noticed that I can't select any Signing Identity with it saying "No Identities from profile "profileName"". And trying to Archive will just popout the same error as paragraph above.
If I choose "Fix Issue" when the error popup, it resets the Signing Identity to "iOS Developer" and the profile to "Automatic". The archive process runs but when I tried to validate or export an error popup; "Your account already has a valid iOS distribution certificate".
I read somewhere that this is maybe due to multiple certificates in Keychain, but I'm not sure which one to delete:
as you can see, I have a number of certs and some seems to have the same name. The 1st, 2nd, and 4th, is the name of my company (with the same id), while the 3rd and 5th, is my name (with the same id).
Now here's a weirder thing I noticed; in Certificates section of Keychain, I have 2 of the same thing (exactly same name) but their expiry date is different with the one without the key have the same expiry date as the one in the Apple Developer page.
Any idea what's going on (and how to possibly fix it)? Can it be someone (we do have other developer for other projects) actually removes the distribution certificate that I have and created another one (causing the whole thing to not sync)? If that's the case do I need to ask him to export it and send it to me? Thank you.
Case 1:
If you can use the computer that generated the certificate.
Xcode -> preferences -> Choose account -> viewDetails -> choose certificate (Distribution) -> Click setting button and export it
Copy to your computer Do same step but import this time.
Case 2:
IF you don't have the computer that generated the certificate.
You have to revoke the certificate and create a new one. (you have to be admin)
Xcode -> preferences -> Choose account -> viewDetails -> choose certificate (Distribution) -> Click setting button and Revoke it.
And Request new by clicking + button beside the setting. And use it.
OR
You can revoke it form https://developer.apple.com and regenerate.

iOS development, certificate/private key pair, valid identity not found

I just updated mac system software, now I cannot build onto my devices. When I try to build I get this error: The identity iPhone Developer: my name (XXXXXXXX) doesn't match any valid, non-expired certificate/private key pair in your keychains.
In the organizer I get: "valid identity not found" warning for all of my provisioning profiles. I looked in the dev center and saw that I had no certificate so I generated a new one, and double clicked it to install. I think it installed but I have the same error. DO I need to remove something, or generate more provisions?
RESOLVED: Look for the Refresh button on the bottom right of the Organizer window. Tapping this will download and install the necessary certificates and notify if they are not generated on the dev center.

Code Sign Error : Distribution iphone App

I have an iOS project to open and when i open it i get an error -
Code Sign error: The identity 'iPhone Distribution: x' doesn't match any valid, non-expired certificate/private key pair in the default keychain
What i have now is a file named given to me by the project owner-
CertificateSigningRequest.certSigningRequest
But i dont know what to do wit it. I created a CA and all that but i cant get it to work. Can anyone point me in the right direction?
Ok so here are detailed steps on how to distribute. You seem new to the topic:
You want to request a development and distribution certificate in Keychain Access (I see you have done that) and upload it to developer.apple.com (you are part of the developer member program right?)
Create an app ID (in provisioning profiles)
Create a distribution certificate - make sure this and step 2 follow your bundle ID
Download the profile and drag to Xcode
Go to your Xcode project, in the target or project build settings set your code signing option to the Distribution certificate (which must match your Bundle ID and of course your distribution and development certificate)
Now go to edit scheme -> then change from debug to release
Set to build for an iOS device (or none at all)
Go to product -> Build For -> Build For Archive
Scroll down on the side (your classes tab etc.) to the product which should be named (AppName.app) and show it in finder.
Create an application on iTunes Connect
Compress the .app and load it to Application Loader
Send it off!
You need to public and private key for the provisioning profile you are using.
The person how created the certificate with which the provisioning profile is signed will have to supply you with them.

Revoked certificate - iPhone Programming

I deleted a certificate in Provisioning Portal (Certificates). Now, when I want create a new certificate I see a warning and this message is sent to my email:
Your Development Certificate Has Been Revoked - you have revoked your
Development certificate and it's no longer valid
My account is valid.
What can I do to add new certificate without problems or restore the old one that I have on disk?
Manual Way:
Go to this URL (Apple developer site):
https://developer.apple.com/devcenter/ios/index.action
Log in with your valid account.
On the right-hand side, there is a column with a heading "iOS Developer Program". Select the "Provisioning Portal" section.
On the left-hand side, click the row of the column that is labeled "Certificates"
Since I already have a certificate I'm not sure, but somewhere on this page you should be able to click "Request certificate" or something similar.
Wait for your new certificate, and then download and install it as before
Other details can be found in Apple's Tech Notes here: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html
You can ALSO have XCode create everything for you.
Revoke all current certificates and provisioning profiles
To invoke "Automatic Device Provisioning" open Xcode's "Window" menu > Organizer > Devices tab > "Provisioning Profile" sidebar under Library.
Check the "Automatic Device Provisioning" checkbox and click the "Refresh" button. After clicking Refresh a dialog should appear requesting your team member account credentials. It is important to answer 'yes' when asked to create your iPhone Certificates if any are needed. In that case, clicking "Submit Request" will allow Xcode to create, download and install the certificate(s).
What XCode is doing for you automatically, according to the above tech note:
1) Prompts to create and install your "iPhone Developer" certificate if one doesn't already exist in the iOS Portal
2) (for admin or agent roles) prompts to create and install your "iPhone Distribution" certificate if one doesn't already exist in the iOS Portal
3) Creates a Wildcard App ID if one does not already exist in the iOS Portal
4) Creates, or updates with new devices added to the portal, your iOS Team Provisioning Profile and installs that into your profile library
5) Syncs the profile library on your local machine with the profiles on the iOS Portal
Solution for Xcode 8
Xcode Preferences > Accounts
Choose your account
Click 'View Details'
Click 'Download all profiles'
Restart Xcode
This step is optional, meaning that might work without this: Product > press 'alt' button > Clean Build Folder
These solved my issue.

Resources