How can I fix a revoked certificate? - ios

I seem to be caught in the 9th circle of certificate/profile/signing hell. I get this notice from apple when attempting to test a little learner app on my iPhone:
The following certificate has either been revoked by a member of your development team or has expired:
Certificate: iOS Development
Here are the conditions:
MBP running 10.13.4
Iphone 6+ with iOS 12.4.1
Xcode 9.4
More info:
I formerly had an Apple Developer Program paid membership which expired in 2017. I did not renew it, because I'm just learning and have nothing to distribute. I started trying to learn Swift, and for a while had no trouble testing my apps on my iPhone. Then an injury interrupted my efforts for around a year. Now, my attempts (using Ray Wenderlich's excellent site) to build and run my project on the iPhone go nowhere, and I get this:
Code Signing Error: The user name or passphrase you entered is not correct.
Code Signing Error: No profiles for 'com.radianimagery.HitList' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.radianimagery.HitList'.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'
Here's what I see in the "Signing" section of the app:
I've tried the developer website, looked through questions on SO (most pretty old), and I'm just plain stuck. I downloaded all my certificates, then hit "Manage Certificates." I get this window, indicating that all my thrashing this morning created more certificates, but I can't seem to do anything with them:
I admit upfront that this whole certificate/profile side of things has always mystified me. That having been said, can anyone please help me get back on track?
TIA
EDIT
I finally had to create a new user account on my MBP, then a new Apple ID. then I joined under that Apple ID, and everything has been peachy since.
Many thanks to all who responded!

It sounds like your Apple ID password may have changed since you last used Xcode - that would explain your Code Signing Error: The user name or passphrase you entered is not correct error. Try navigating to Xcode > Preferences... and view the Accounts tab, and check for any errors there. Xcode may prompt you to sign in again with your Apple ID.

Related

Can't run Xcode project on device due to certificate issues

This is the first question I've ever posted.
I am trying to run an Xcode 9.0.1 project on an iPhone 6 Plus and these three errors come up:
Code Signing Error: The user name or passphrase you entered is not
correct.
Code Signing Error: No signing certificate "iOS Development" found:
No "iOS Development" signing certificate matching team ID
"KP3X78QM3M" with a private key was found.
Code Signing Error: Code signing is required for product type
'Application' in SDK 'iOS 11.0'
I suspect this is caused by Xcode not being able to read the developer certificates on my computer. This is what the General tab looks like under Signing. Clicking "Try Again" will generate a new certificate but all of the errors still remain.
I checked the Keychain Access application and it has an iPhone developer certificate, although I'm not sure if anything else is missing.
I've looked up similar questions and started reading Apple's Xcode troubleshooting guide but I am still confused and don't want to accidentally modify anything important.
I desperately need to fix this issue; if there is an Apple support email or someone I can contact in person about this, that would be amazing.
Thanks in advance!
I found a solution!
Even though this question only has a few views, I'll share it in case anyone else has the same problem in the future.
Long story short, I Quit Xcode while the two errors were still present in the Signing section of the General tab. At this point, clicking Preferences -> Accounts -> Manage Certificates still gave the "Missing Private Key" error messages like so.
After quitting Xcode I restarted the computer and opened Xcode again. Under the Signing section for the General tab, it prompted me to log in with my Apple ID. After logging in, the two errors were gone. I opened the "Keychain Access" application on the mac, clicked on the "My Certificates" tab and noticed that a new certificate had been generated WITH a drop down arrow that contained a new private key!
To set up the new key so it works, connect your device (in my case an iPhone 6 plus) to your mac and run your Xcode project on the device. A window titled 'codesign wants access key "access" in your keychain." should pop up, wanting the password for your computer.
VERY IMPORTANT: Type your computer login password (not your Apple ID password) and click ALWAYS ALLOW! I got confused and accidentally hit "Deny" the first time around which is what got me into this mess in the first place. Click "ALWAYS ALLOW"!!!
After this point, Xcode should be able to run your app on a device.
Good luck!

Trouble generating iOS certificates

I'm trying to get the Hello World app running on a iPhone, but have been getting a confusing error. I've tried this 4-5 times over the last 4 days with the same results. Here are the steps I have followed:
1- I started with a fresh NetBeans install (NetBeans 8.2 Patch 1 under Windows 7), installed the plugin (v3.6.0), and created a new CodenameOne Project named 'Hello' from the Flat Blue theme and the template 'Hello World (Bare Bones). I set the package name to something unique as required.
2- Then I went to developer.apple.com and revoked any certificates that were there, and deleted all of the appIDs and Provisioning Profiles. There is one iPhone5 device specified. I believe this should give CodenameOne a clean slate to work with.
3- Back with NetBeans and CodenameOne, I invoked the 'iOS Certificate Wizard', specified my AppleID/pswd when requested (yes they are valid!), and selected my iPhone device. The next screen summarized the certs (2 of them) and an AppID to be used to generate the provisioning profiles. On the next step, I get the error: "Could not create the appstore profile." with accompanying messages to the effect that "The Apple Developer website is undergoing maintenance", etc. I've included the screen capture:
When I check https://developer.apple.com/system-status, everything looks like it should be ok. If I look at my Apple Developer Account, Codename One has generated an iOS Development Certificate and an iOS Distribution Certificate, but not any App IDs or Provisioning Profiles.
FWIW, the plugin is version 3.6.0 from the default update site (https://codenameone.googlecode.com/svn/trunk/CodenameOne/repo/netbeans/updates.xml)
Has anyone else had this problem? I'm at a loss as to what to try next.
Any help would be appreciated.
Thanks,
Terry
On trying to generate a certificate on my side, I experienced the same issue.
It's a generic 'come back later' message from Apple.
Contact Apple and I will do the same to let them know about the issue.
Their system status is an idle dashboard which is unreliable.
Edit:
On trying again, I clicked Ok on that message and proceeded. The certificates and Provisioning Profiles were generated successfully and the app works fine with the certificates.

Came up with this unusual error when trying to run my Xcode made app on my iPhone.

I'm currently using the new Xcode-Beta as of the 30th July. I have been playing around and I found some Projects on GitHub that I have been looking at. I have been able to package them and then run them on my iPhone, however when I go to create my own project and run it, I receive this error message:
No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
I'm not sure what the issue is, as I cannot run the app on the simulator or my iPhone
Thanks for your help!
Its because the people on Github posting their own apps have signed them with their apple developer account. You need an apple developer account to create signed applications. Its 100$ a year. https://developer.apple.com

iOS & XCode5 App publishing fails - Error ITMS-9000: "The binary you tried to upload was invalid"

I was already looking through some other threads here with the ITMS-Error 9000, but they didn't help me to get my App passing the submission to the App Store.
I have NO errors or warnings inside XCode.
The App is perfectly working on iOS Devices & Simulators.
EDIT: What I have already tried:
Changed Deployment Target from iOS 7.1 to 7.0
Checked the Bundle ID in iTunesConnect and inside Xcode
Checked for any errors and warnings --- removed / fixed them
Do you have any additional ideas what it could be? Without any errors or further information it is hard to find out what the reason is.
UPDATE2::
If I try "just" to "Validate" instead of "Distribute" in the organizer after Archiviing it i get the following Error
Its an Issue with Apple's Server I tried validating the app it said "Unable to process app at this time due to general error" a quick search about it on SO said its got nothing to do with our code or project but some process running at Apples server
Assuming that your binary icons does not meet as per apple's human interface guidelines.
It most probably seems to be the issue with the profile you are signing your app with. You got to make sure that your are signing the app rightly with proper distribution profile. Also check out for the bundle identifier and make sure that it is same as the one you have given in itunes connect.
Check this link!
You should be creating the binary with the simulator or some device connected.
Try it:
Unconnect iOS device from your Mac,
Dont select any simulator, just leave it as it is, iOS device option
Archive it
Publish it
Make sure you're using a provisioning profile for the App Store (not for Ad Hoc distribution)
Then select this profile when building your app.
I would guess this all has something to do with Apple making system changes to prepare for iOS 8 and in doing so somethings got broken.
The issues look to have just been resolved by Apple. I just successfully submitted an app that was previous showing the same problem you had. If you look at your Provisioning Profiles, you should notice that Apple has removed your app's previous Distribution Profiles.
To get your submission working again, all you have to do is recreate your App Store and Ad Hoc provisioning profile, but make sure to use a new name and you should be good to go. You were not alone on this one. A bunch of people experienced the same problem and there were a lot of posts about it on the official Apple Dev forums.
Please check the Distribution Profile that you are signing your app with at iTunes Connects. make sure that it is still valid. I had same issue couple days back and after a struggle , i found out that somehow my provisioning profile was not valid anymore. Creating a new profile and submitting app with it solved my issue.
Apple have deleted corrupted provisionning, you just have to regenerate it and make submission works again !
Connect to your iOS Developer
Certificates, Identifiers & Profiles
Provisioning Profiles / Distribution
Here you can see some certificates missing. You have to re-create (Distribution / AdHoc). Note, you have to change certificates name !
In Xcode, refresh your certificates, set the right one in Build Settings, and submit...
I called today the Apple Developer Support and i get one very very simple answear to this issue.
You have to create all your certificates, provisioning profiles etc with Apples SAFARI browser.
It is not working "always" proper with Mozilla Firefox or other Browsers. So if you get such an error, try to recreate it with Safari! It worked like a charm!

Difficulty provisioning iPad application for testing on iPad

I have a provisioning profile, registered my device, added the certificate, and created an app id for my application. I set the provisioning profile in the Code Signing section on XCode and the App ID is set. I had a problem where it said iPad-only applications should not use armv6 and the build failed so I followed some advice I read and set it to build active architecture only and now I don't receive any warnings, but the build still fails. The iPad is plugged in and I selected it from the drop down for running. Also I am using XCode 4 and I was trying to follow this tutorial http://mobile.tutsplus.com/tutorials/iphone/iphone-sdk-install-apps-on-iphone-devices-for-development/.
My professor created the provisioning profile and the app id, but I checked and everything looks fine except for one thing. When I look at the app ids on the developer page under "Apple Push Notification service" it says unavailable for the app I'm using, while some other app ids say "Configurable for Development". I'm not sure if that has to do with the problem but I thought it might be related.
I also tried doing a clean build because I saw that suggested somewhere, but it still failed so something must be wrong with how I set it up.
Does anyone have any ideas on what I might be doing wrong?
edit: just thought of something else, under the organizer page if I click on applications my app isn't there and if I try to add it I get an error message saying "No Code Signature Found"
Also, if I look at the provisioning profiles the app id section is blank. Do I need to link the provisioning profile up to the app id some how?
Take a look at this, It might be helpful https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933-CH1-TROUBLESHOOTING_GUIDE-CODE_SIGNING_ENTITLEMENTS

Resources