iOS Question Failed to parse certificate file.Error: security: SecKeychainDelete: The specified keychain could no

tufanv

Expert
Licensed User
Hello,

Searched all the topics about this issue, and created a new certificate and provision file. I am always getting this error with local mac builder:

Sending data to remote compiler. Error
Failed to parse certificate file.Error: security: SecKeychainDelete: The specified keychain could not be found.

Anything I can do about it ?

edit: I also tried to change the user id as @Erel suggested
 
Last edited:

Filippo

Expert
Licensed User
Hi @tufanv ,

This is unfortunately one of the mistakes that come from today to tomorrow, without be a clear reason.
I had the same thing a few months ago. After several times creating new certificate and provision file, it worked.
The creation of certificate and provision file is still so obscure(at least for me), even after so many years of B4i.
 

tufanv

Expert
Licensed User
Hi @tufanv ,

This is unfortunately one of the mistakes that come from today to tomorrow, without be a clear reason.
I had the same thing a few months ago. After several times creating new certificate and provision file, it worked.
The creation of certificate and provision file is still so obscure(at least for me), even after so many years of B4i.
So shouldI continue to create certificate and provision until it is okay :) I have reachedthe maximum number of certificates for now :)

I have to update the apps for the marketing url and hit this error.
 

tufanv

Expert
Licensed User
I already tried 3 new pairs but no luck. I revoked one and tried with new ones but no luck.
 

Erel

Administrator
Staff member
Licensed User
The first thing to do is to test it with the hosted builder. If you don't have an account then I will send you a temporary id.
 

tufanv

Expert
Licensed User
I don't have the hosted builder. I can try with that with the temporary id.
The first thing to do is to test it with the hosted builder. If you don't have an account then I will send you a temporary id.
 

tufanv

Expert
Licensed User
The first thing to do is to test it with the hosted builder. If you don't have an account then I will send you a temporary id.
Failed to parse certificate file.Error: security: SecKeychainDelete: The specified keychain could not be found.

Getting the same error with the hosted builder now. (thanks for temporary id )
 

Erel

Administrator
Staff member
Licensed User
My guess is that the certificate and provision file do not match. Start from scratch. Create a new keys folder.
 

tufanv

Expert
Licensed User
I have to leave the office now I will try this evening with both local and hosted and report my findings here.
My guess is that the certificate and provision file do not match. Start from scratch. Create a new keys folder.
 

watesoft

Active Member
Licensed User
Hello,

Searched all the topics about this issue, and created a new certificate and provision file. I am always getting this error with local mac builder:

Sending data to remote compiler. Error
Failed to parse certificate file.Error: security: SecKeychainDelete: The specified keychain could not be found.

Anything I can do about it ?

edit: I also tried to change the user id as @Erel suggested
Try open xcode, Menu: Xcode→Preferences→Accounts→ Input your Apple Id and Password→Download Manual Profiles.

Or your package name does not match your mobileprovision name
 
Last edited:

Yvon Steinthal

Active Member
Licensed User
I encountered the same problem today... Will redo the steps for the certificate and provisioning...

EDIT: Even after regenerating these files i still get the same error.... any ideas?
 
Last edited:

Brandsum

Well-Known Member
Licensed User
I had the same problem. So deleting all old certificates from keychain and installing the new one solved my issue. I use local builder.
 

tufanv

Expert
Licensed User
I had the same problem. So deleting all old certificates from keychain and installing the new one solved my issue. I use local builder.
While using a remote builder, I dont think we have anything to do with the keychain so it MAY NOT be the problem. For local builder you may be right. I will make some tests with both local and remote builder in a hour.
 

tufanv

Expert
Licensed User
Now I deleted all certificates and provision profiles. Created new ones. And everything is working in local builder. On remote builder I get an error about firebase analytivcs which is probably a missing library I use but hosted builder doesn't have. What I did wrong was, I had created a Apple Distribution certificate whereas I needed to create iOS Distrbution Certificate.
But I dont know why the old ones stopped working and gave me that error.

@Erel : thanks for hosted builder, it can be dectivated now.
 

tufanv

Expert
Licensed User
Try open xcode, Menu: Xcode→Preferences→Accounts→ Input your Apple Id and Password→Download Manual Profiles.

Or your package name does not match your mobileprovision name
I experienced this again, and this helped me . Thanks !
 

tucano2000

Active Member
Licensed User
Try open xcode, Menu: Xcode→Preferences→Accounts→ Input your Apple Id and Password→Download Manual Profiles.

Or your package name does not match your mobileprovision name

It worked for me on a new install of Xcode and the MacOS system.
 
Top