is it possible to refresh the ios profiles valid date - ios

Today I found the ios app could not be opened. Then I found the app profiles are expired from the developer console dashboard:
I checked the certificate that show the certificate are valid until to 2023-03 . is it possible to refresh the legacy expired profiles? I have tried to edit the legacy profiles but did not found the refresh guide, what should I do to renew the profiles? should I delete the expired profiles? I am using fastlane to manage the ios certificate. I have tried to run the command:
fastlane match
shows error:
[!] Your certificate '4G4Z9TW279.cer' is not valid, please check end date and renew it if necessary

Related

Codesign error while archiving IOS app

I am new to IOS. I have developed an IOS application now i want to publish this application on iTunes. I have created Certificate, App ID and then Provisional profile. I have succesfully added this in “Code Signing” section of "Build Setting”. Now, while Archiving the project i am getting a following error.
error: Couldn't codesign /Users/dx/Library/Developer/Xcode/DerivedData/xxxx-dgsqnqppikhtqeezizlbydrpxfiz/Build/Intermediates/ArchiveIntermediates/xxxx/InstallationBuildProductsLocation/Applications/xxxx.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1*
Please help me out of this problem. Thanks in advance.
You need to re-generate your provisioning profile from Apple Developer Center. As far as I know they add something new to profiles and that causes the problem.
Solution
In keychain access, -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too.
-> After deleting the expired cert from the login and System keychains,download certificate from below link and open with keychain.
Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer and add it to Keychain access > certificates (which expires on 2023)

Problems with iOS Free Provisioning Profile

I've been using Xcode with a free Apple ID, and signing a App with a free provisioning profile.
However, after I signed the App with another Mac, the certificate on the first Mac I used to sign the App with does not work anymore.
I received this error message when I tried to run it on my iPhone:
Please verify that your device's clock is properly set, and that your signing certificate is not expired. (0xE8008018).
After generating a new certificate via Xcode > Preferences > View Details... > iOS Distribution > Create, I got this error instead:
The identity used to sign the executable is no longer valid.
After deleting the App from my iPhone, I tried to run the App again and received this error message instead. This also caused my phone to freeze for a while:
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Test
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Test.app/Frameworks/libswiftCore.dylib'
(lldb)
Update: I'm using Free Provisioning Profile, thus I don't have access to iTunes Connect. I also can't import the certificate from my 2nd Mac as it was it was reset.
Update 2: I've also visited Keychain App and found 2 certificates - one expired and one valid. I deleted the expired one and tried to run the App on my phone again, but the error persists.
Update 3: I've tried to revoke all my certificates in developer.apple.com, but there isn't a certificates management. Only 'Programs & Add-ons' and 'Your Account' sections are available in the nav, which allows me to enrol into Apple Developer Program.
Update 4: I've also restarted my Xcode to no avail.
The main problem is that I'm not sure why I cannot revoke and regenerate a new certificate.
How can I solve this problem?
Generate a New CSR from your Keychain and download new certificate using this CSR. Include this certificate in your provisional profile and download it. Make sure you remove all expired certificates from Keychain. Good luck.
You don't need iTunes Connect to manage your certificates, IDs and provisioning profiles. iTunes Connect is used for managing your app store releases, which as you know you can't do with a free account.
You need to go to developer.apple.com and log in with your free account to the member center. You will be able to see the certificates and provisioning profiles under your developer account.
Since you don't have anything in the store (you can't with a free account), I would go into the developer's member center, revoke and delete any certificates that are out there, and delete all provisioning profiles. Start from scratch and generate a new certificate using a brand new CSR. Then generate a new provisioning profile using the existing app ID and the newly created certificate. Download the profile update your project settings to use the new signing identity and profile, and you're back in business.
Also, this is assuming that you are not sharing this developer account. If you are, doing the above instructions will make it so other developers will not be able to build with the signing identity unless you give them the private key for the certificate.
I managed to fix this problem by renaming the App name, and recompiling the App. I think that by renaming the App, a new certificate is generated, thus it would work.
Even though, it's not really a great solution, but it solved my problem as I wanted to rename the App in the first place.
Thanks everyone for providing answers!
I had to create a new Apple ID and it worked. Not the ideal solution but without access to certificates its the only solution that worked for me.

Unable to install the testflight build with "Developer certificate is no longer Valid" message

I am facing a weird situation, the appstore upload were successful and were able to install the testflight build till yesterday. However since today it is showing "The app couldn't be installed because developer certificate is no longer valid". We have uploaded other projects yesterday with the same certificate. We tried regenerating the profile , but still the app cannot be installed from testflight and the weirdest situation is some users were able to install the app from testflight . Have anyone faced this situation? Is there a solution?
Yes i have faced same issue like you,
I turned off all the beta testings and then turn on the one which i want to test, and then it works.
Note:- Beta testing iTunesConnect - App
Try this.
Apple made certificate revoked,just delete certificate in your key-chain and download it again.
Maybe you have noticed that all your certificates in your Keychain show the error "This certificate has an invalid issuer".
To fix it follow these steps:
Open up Keychain Access.
Show expired certificates by going to View > Show Expired Certificates.
Navigate to the System keychain and delete the expired WWDR Certificate.
Download the new WWDR Certificate here and import it into your keychain.
In keychain access, -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too.
-> After deleting the expired cert from the login and System keychains,download certificate from below link and open with keychain.
Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer and add it to Keychain access > certificates (which expires on 2023)
After this try to create new developer certificate and after this you can upload app for testing and this error will solved.
It worked for me.

Your account already has a valid iOS Distribution certificate - Xcode error msg with signing app

When I try to use the 'Export > Save for Ad Hoc Deployment' option in Xcode I am presented with a dropdown menu where it says the following :
To Save for Ad Hoc Deployment, select a Development Team to use for provisioning:
I only have a single option so once I click 'Choose' I get the following error message:
Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues: Your account already has a valid iOS Distribution certificate
When logging into my iOS Developer account I can see I currently have 3 iOS Distribution Certificates (5 in total) and all currently valid (e.g they expire in the future).
The Mac I am using is new, plus all the mobile iOS apps were developed by external developers/teams therefore I'm not sure which certificates I can safely remove.
As the certificates would have been made on other machines I don't have access to it isn't possible for me to simply export the existing developer profiles on these other Mac's and have them installed on my Mac. I'm also unsure if i can revoke current certificates? What is the worst that can happen when revoking current certificates?
As with most error messages in Xcode regarding certificates, it is not very helpful. I would do the following:
delete all the current certificates on your developer account
create new ones on your new machine MANUALLY (not through Xcode, so use the Keychain), this will make sure that the keys that sign your certificates are in your current keychain
update your provisioning profiles with the new certificates
sync the new profiles within Xcode (Preferences -> Accounts)
update your app settings
To this day I still manually do all my certificates and provisioning and while certainly not problem free, I don't seem to have nearly the nightmares that many people do. The only part of the process that I do let Xcode handle is to sync up the profiles.

No identities were available - administrator request not solved by previous answers

I get the "No identities were available - administrator request" issue
I have a valid certificate, a match boundle ID, a valid provisioning profile (distribution) I have two apps, both I published 3 weeks ago to the app store with the configuration I currently have.
the only thing that changed is that I upgrade my mac to 10.9 and my xcode to 5, but left my device at IOS6
now both my apps failed to validate with the above error.
I tried the steps in many other articles like No identities were available - administrator request
or Xcode 4.3.2: "No identities were available" - Where to request a Dev Identity?
or https://discussions.apple.com/message/21603155#21603155
and others
nothing works
any idea ?
I spent two days reading forums and searching the web and finally figured out the problem. Under your IOS provisioning profiles, you have to have a profile that is listed as ditribution under type. It also needs to be listed under your account in xcode (xcode>preferences>account>view details) if it is not listed there, click the refresh button to have it check itunes connect for your certificate. I tried deleting every certificate and everything from Certificates, Identifiers & Profiles and let xcode create new certificates, but xcode says it will add distribution stuff and doesn't. Make sure to use your provisioning profile that is a distribution type for your provisioning profile under your code signing in both of the app target build setting and the app project build settings.
I had to go into Applications -> Utilities -> Keychains on my Mac and remove expired certificates. After removing those, I had to generate new certificates through the IOS Developer Site and import those into the Keychains application. After doing so, return to Xcode and in Build Settings, verify you are using the new Code Signing Identity and Provisioning Profile. (You will need both recreated, as revoking the Identity will invalidate the Provisioning Profile.)

Resources