Certificate Error - Building a program for iOS for iPhone fails

Dear all, I am not able to transfer a programm to my iPhone 17, i get a certificate issue. Although i followed the general steps. If

  • I was guided to this forum by the german apple support. Before in macOS Sonoma, with iOS 16 and iPhone 8 i have been able building programs for the iPhone. The Simulator has still no issues and works fine.

Problem/Error:

Certificate installation failed

Installing a certificate in the keychain failed (Error Domain=DVTSecErrorDomain Code=-25295 "The specified keychain is not a valid keychain file." UserInfo={NSLocalisedDescription=The specified keychain is not a valid keychain file.})

No profiles for '-.delme2' were found

Xcode couldn't find any iOS App Development provisioning profiles matching '-.delme2'.

Furthermore, when I try to download a certificate myself via (https://developer.apple.com/account/resources/) I get the error:

Unable to find a team with the given Team ID 'XXXXXXXCENSORED' to which you belong. Please contact Apple Developer Program Support. https://developer.apple.com/support

In XCode I continue to receive the following information:

So no programs can be transferred to my mobile phone.

Objective:

How do I get the reported errors resolved to transfer programs to my mobile phone?

Certificate Error - Building a program for iOS for iPhone fails
 
 
Q