lost my iphone development certificates - iphone

I had everything working fine on my macbook (keychain, certificates, profiles …etc) for some reason I lost everything on my macbook including the backup of my certificates that I should use in the keychain assistant, currently I am working on installing the latest version of mac os and iphone sdk and xcode in order to develop for iphone 4. But I don’t know what should I do to restore my settings and certificates or did I lose it all or what ? I am very confused so please advise.
i even started from sctarch and submit new certificate but with no luck
Thanks for help

If you can't find a backup of your certificate, you should delete your old one on the portal, and follow the instructions to create a new development certificate.
After that you will have to edit and regenerate all of you development profiles, as they are tied to your certificate... just edit, select your new certificate, save and download after the portal generates the new certificate. To avoid confusion you should probably remove everything from ~/Library/Device/Provisioning Profiles

If you are sure you installed it correctly, do a build clean all and rebuild

Related

Option to select provisioning profile for Mac Catalyst is grayed out

I'm working on to create an app for Mac Catalyst platform using .NET MAUI. I'm already done with the creation of distribution certificate and provisioning profile. Also I have installed both. Now the problem is that I am unable to select the provisioning profile/certificate under Bundle Signing cause the option is grayed out.
You could create a certificate for Mac Development or Distribution on Apple Developer Portal and download it in your keychain access. I recommend this document: Provision an iOS app for app store distribution and although it's for iOS, the workflow for Mac app is similar.
Hope it works for you.

CSSMERR_TP_NOT_TRUSTED after build on xcode4

Im having some trouble to get my app installed on my iphone just after I built my code in xcode. When the build has finished I get this error: "CSSMERR_TP_NOT_TRUSTED Command /usr/bin/codesign failed with exit code 1". My certs are ok, as I just re-downloaded from apple's site because Im working on a different mac.
I've tried a lot of solutions I found on google: changed form "always accept" to "system default" on the cert trust section, re donwloaded the certs, create a new project and start all over again but nothing seems to work.
However, I'm able to create an IPA file and install it on my iphone using iTunes, is this ok?? Also the certs were correctly installed on the iphone as on the organizer and the phone recognizes them.
I really appreciate any help! :)
In addition to the provisioning profile, you also need to download and install your developer certificate and the Apple WWDR intermediate certificate from the Provisioning Portal. Follow the instructions in the 'Certificates' section of the provisioning portal. You need to download your developer and intermediate certificates and drag them into the Keychain application.

Setting up new iPhone Dev Environment for existing app

This might be a weird question, but I'll try anyway.
I set up my dev environment with certificates etc on an old MBP, built an app and released it on the App Store. I've since upgraded to a new MacBook Pro, but didn't move over any certificates, so can no longer build my application.
Have I completely screwed things up? How can I install the right certificates on my new MBP? Note: I do not own the old MBP any longer so cannot transfer anything from there...
Thanks for any advice!
you can allways download developer-certificates / provisioniong profiles from the Provisioning Portal
I hope that helps.
sam
Assuming you are running at least Xcode 3.2.2 (it may be present in earlier versions, too), on your old machine go to the Window menu and select Organizer. Then go to the Developer Profile section under iPhone Development. Select Export Developer Profile.
Copy it over to your new mac, go through the same steps to import and you should be good to go.

iPhone: Application Install Fails With "Invalid Signer" Error

The iPhone is attached to a Mac runnning the latest iTunes version and I am 100% sure that her UDID is in the provisioning file. Her iPhone has not been jailbroken and we even restored it to factory settings.
I am having trouble installing our development build on this one iPhone. The error is:
the application "[Application Name]" was not
installed on the iPhone "iPhone"
because the signer is not valid
I am 100% sure that the UDID is accurately entered in the provisioning file and that they correctly copied the right provision file/build combo. This same combo has been successfully installed on over a dozen iphones.
We have been able to install this on some devices with no problems.
Edit:
From comments to an answer:
We can install it on 100 iphone with
our account. We have about 40 iphones
in this provisioning profile and it
works on 38 of them.
I had a fix that seemed to work for one user who was having troubles:
remove all offending profiles and apps
restart
add back provisioning profile FIRST
sync device
now add app resource
sync again to get app on device
the offending machine was a windows box... dunno if that makes a difference.
If someone else gets this issue - try this and let us know if this is the actual fix or workaround! This goblin has rarely been seen and solved with the same steps.
this was my reference for the fix idea:
http://iphone.forums.wordpress.org/topic/installing-beta#post-1194
Does the answer to this question help you at all?
Signer not valid error
Put the signing at the Target level, not the Project level
I'm personally not sure what that means but it worked in that case
We can install it on 100 iphone with our account. We have about 40 iphones in this provisioning profile and it works on 38 of them. Any other ideas?
I'll tell Buzz that you say hi and if you can help us we'll get you a moon rock!
(Ignore: I misread the question and didn't notice he had dozens of installs already so my advice does not apply)
If you have just the standard developers account, you can only install on up to five phones before the certificate becomes invalid for further installs. If you've already installed it on five phones that is most likely the problem.
Tell Buzz some random guy on the internet said, "Hi!"
A couple of things to try:
Renew the profile at the Developer's portal. It may have expired or become corrupt.
Create a new provisioning profile
Does the mobileprovision file show up on the device after sync? You should see it in
Settings->General->Profiles
If it doesn't then that would be the problem. Check once again that the UDID is correct - same UDID on iTunes and in the developer portal. Try syncing iTunes with the mobileprovision without trying to install the app. If it still doesn't get installed then CHECK THE UDID. If it is getting installed on all other devices, UDID is most likely the issue.
If the distribution signing certificate was revoked in the meantime and recreated, you need to remove the old provisioning profile from the device first. This is on an iOS 3.1.3 device.
This happened to me recently and I resolved it. Situation was that I had an ad hoc provisioning profile I was using successfully for around 40 devices with several different apps. When a new device was required I would add it to the profile, download, then use 'share' from XCode with the same archived app but the new profile.
Recently my distribution certificate expired, so I created a new one and recreated the provisioning profiles. Subsequently, I could still install on the existing devices but would get an error trying to install on new devices, even though I had added them to the profile and installed the profile on the device.
The secret was that although I had created the new distribution cert and added it to my KeyChain, there was still a copy of the old cert in the KeyChain, and that was being used to sign the app. It turns out that if you do not delete the old provisioning profiles from XCode, when you start up XCode it will recreate the old cert in the KeyChain, and that will be used to sign the app, which means that the new profile with the new device (created with the new cert) will not match.
Solution: when you renew your cert, delete all the old profiles signed with that cert, delete the old cert, then recreate, download and install the new profiles.
hth

Reinstalling iPhone code signing certificates after new Leopard install

Back story:
Small-time iPhone developer, even have a (tiny) app on the App Store, so I've navigated the code-signing process before.
Performed the appropriate backups of my crypto certs (as outlined in the "Saving your Private Key and Transferring to other Systems" section of iPhone Developer Program
Standard Program Portal User Guide). I even have the previous full-disk image, if necessary.
Performed a full Leopard reinstall.
Installed my private key from the .p12 files created during backup process and my development certificate (re-downloaded from "Current Development Certificates" section of my iPhone Developer Program Portal)
iPhone developers who've gone through the same process: Can I use my old certificates, or must I go through all or part of the private key generation, CSR, and cert install process? If so, what are the steps to properly reinstall my certs so that Xcode recognizes them (and I can get back to the true goal - testing on my iPhone hardware again)?
You need your provisioning profiles and that should be it. But I emphasize "should" because I had trouble getting it back to work, too. I'm suspecting Keychain Access to be buggy (but don't quote me, I cannot prove it).
Some copying-keys-and-certificates-restarting-xcode-rebooting-device craziness later it simply worked for no obvious reason. It's definitely possible to use old keys, certificates, and profiles after a clean install.