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

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.

Related

Delphi [PAClient Error] Error: E0264 Unable to execute '"/usr/bin/codesign

Trying to deploy a Delphi 10.2.2 application to iOS gives these errors:
[PAClient Error] Error: E0264 Unable to execute '"/usr/bin/codesign" --deep -s "iPhone Developer: Wayne Smith (PJ7R7645WB)" -f "/Users/waynesmith/PAServer/scratch-dir/wsmith-WayneTemp/Project1.app"' (Error 1)
[PAClient Error] Error: E0264 /Users/waynesmith/PAServer/scratch-dir/wsmith-WayneTemp/Project1.app: unknown error -1=ffffffffffffffff
When you run codesign on a new certificate for the first time, macOS will prompt you for your admin name/password. 
If you select "not allow", you will get the error -1 too, and that's the error you are getting from Delphi also.
Also check:
Apple posted a collection of code signing problems (and some solutions) in a new document: Technical Note TN2407 Code Signing Troubleshooting Index
Check the CODE_SIGN_IDENTITY property in your build settings. Is your provisioning profile selected there?
You also need to enter a valid bundle identifier in your apps .plist.
The identifier has to match the one you provided when generating the profile.
Apple has a technote about that here.
When you use XCode to build a sample, and you get this error, if you right-click the error message in Xcode and choose expand to get more details, do you get a description of the problem? For example, you may have two copies of your developer certificate with the same name in different keychain files, and Xcode couldn't figure out which one to use?
Check if you have any expired certificate on my System keychain. Keychain Access doesn't, by default, show expired certs. You need to go to System keychain, and make KA tell you about expired certificates, then delete the expired one that is colliding with your proper certificate on the login keychain.
5. Check in Keychain Access, if the actual Apple WWDR certificate is marked as "Always Trust". It needs to be "System Defaults". That goes for your Development and Distribution certificates, too. If any of them are incorrectly set to "Always Trust", that can apparently cause this problem.
So, in Keychain Access, click on the Apple Worldwide Developer Relations Certificate Authority certificate, select Get Info. Then, expand the Trust settings, and for the combo box for "When using this certificate:", choose "System Defaults".
Others have commented that you may have to do this in System and login keychains for these errors.
Try adding --deep to Other Code Signing Flags in Build Settings. More information here: Codesign of Dropbox API fails in Xcode 4.6.3: "code object is not signed at all"
In Keychain Access, Check whether you have selected a provisioning profile which includes the valid Code Signing Identity and a valid Bundle Identifier in Settings. (Goto Build Settings->Signing->Provisioning Profile).
Open Keychain Access and click on lock icon at the top left, so it will lock the login keychain and then again click to unlock.
Goto File->Project Settings->Derived Data and delete your project build folder. After that clean and build your app.
8. Check in Keychain Access if your developer certificates were marked as "This certificate was signed by an unknown authority". If you recently upgraded to a newer Mac OS version and have had a couple of other XCode (4.5.2) issues since then, it could be you do not have the WWDR intermediate certificate installed?  If yes, I download that from the iOS Provisioning Portal, installed in Keychain Access, try again to deploy the project.

IOS Signing Errors for Building for IPhone

I made a game with Unity and used the IOS Export option on my windows machine, and then I copied over the Xcode project to test it on my device before I try and release it. I have a free developer account, but it keeps giving me the error:
Failed to code sign 'Unity-iPhone'
No valid signing identities (i.e. certificate and private key pair) matching the team ID “9P75XXXXXX” were found.
Xcode can attempt to fix this issue. This will reset your code signing and provisioning settings to recommended values and resolve issues with signing identities and provisioning profiles.
There is then an option to "Fix Issue" but once I click that, I get the error 'Could not generate key pair for CSR'
I have tried other fixed for the Could not generate key pair for CSR Error, but when I go into my Keychain Access and try to request a certificate from the certificate authority, I go all the way to the end, but then I get the error "User Interaction is Not Aloud".
What can I do to fix this?

can't resolve "valid identity is not found"?

I'm trying to develop my first iOS App on my mac (OS 10.8), the application contains a push notification service. I followed the below steps to create my App ID:
Give a name to the APP ID
Set the Bundle ID.
Check the Push Notification checkbox
Create App ID
Generate a certificate, by uploading the request created by key chain access, then downloading and installing it on key chain access, exporting into .p12 file.
Create Provision Profile, Download and install on my Xcode organiser (XCode 4 updated version) and on my device to test.
The project work well on the simulator (except get the token and that's normal). However when installing the provisioning profile on the Xcode Organizer it gave me :"valid identity is not found".
Checked and tested Many Solutions:
Delete Cert from Dev Center and Key Chain Access.
Delete Provision profile recreate it.
Install provision profile directly from Xcode.
Delete Created Keys from key chain and create new ones.
Many suggestion has been provided:
Your Keychain is missing the private key associated with your iPhone Developer or iPhone Distribution certificate.
Your Keychain is missing the Apple Worldwide Developer Relations Intermediate Certificate.
Your certificate was revoked or has expired.
Online Certificate Status Protocol (OCSP) or Certificate Revocation List (CRL) are turned on in Keychain Access preferences
None of the above fixed the problem.
Would you please provide a solution for this problem and thank you in advanced.
i had discover my problem. i work in a company and there is my partner have generate the developpements certificate on his own mac. i work on a different mac. so what i need, he must export the key and the certificate from his key chain access and give it to me.
that's it.
beginner's problem :d
First of all make sure your Bundle Identifier match with the bundle Identifier included in the provisioning profile. And you have correctly added your iPhone's UDID to the developer account under devices and then add the bundle identifier and device to the provisional profile. Also make sure you have requested the certificate from your own Mac and then installed the certificate after downloading it from the developer account. And there will be a key under your certificate.
Many things may go wrong, so simply try these steps, even if you've done them before.
Make sure your Bundle identifier is the same at both in Xcode and in iTunes Connect, it's a good practice to fill it manually instead of Xcode's template, as it IS case-sensitive.
Check that your testing device's UDID is listed on the Devices list at developer.apple.com.
Create a new provisioning profile with a new unique name, for your app's bundle ID, make sure, again, that it's the same bundle ID (case sensitive) and make sure you have your newly-added device UDID (or the existing one if you had it correct before) in on the provisioning profile. Take a note of the developer certificate that the provisioning profile is bound to.
Download the newly created provisioning profile AND the development certificate that the provisioning profile is for. Clean your project's build folder (open Product menu from the menu bar, press and hold down the option button on your keyboard, and select 'Clean Build Folder...', exit Xcode.
Open both your provisioning profile and certificate. One should open in Xcode, the latter, in Keychain access.
In Keychain access, make sure you have the private key to your non-expired, non-revoked developer certificate. (if not, you need to either find its private key (e.g. in another keychain or in another Mac. It should be on the Mac that the CSR is created on, or if none are available, revoke it and create a new certificate, and start over this process)
In Xcode, make sure you are using the provisioning profile, NOT overriding it (e.g. you've selected a different value under 'Debug' or 'Release' options by mistake).
In Xcode, make sure you are using the correct development certificate (the one that is bound to the provisioning profile) and not overriding it under Code-signing identity section's Debug or Release, or in 'Any iOS SDK' sub-item underneath them. If everything worked, Xcode should offer you the correct certificate for your provisioning profile.
Your project should build. Seriously, I can't think of anything else.

Valid signing identity not found no ice what's wrong

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.

ios code signing issue

I am in a trouble with IOS CodeSigning.
I searched it but i cant find out what is the problem.
Here is my problems
http://i.stack.imgur.com/caCR7.png
http://i.stack.imgur.com/OIkLH.png
My bundle id is correct however it is not working.
Error message is ; "Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in the default keychain"
Go to Organizer, choose Device tab, and under Provisioning Profiles (first entry in the left panel) you should see your certificates. Are they valid? If not you may be missing private key.
If you go to your Keychain, under Certificates you should see your developer profile. They should be expandable and when you expand you should see there's the private key. Without it the certificate won't be valid.

Resources