When archiving an app in XCode (Product > Archive) I get the following error:
CodeSign /Users/***/Library/Developer/Xcode/DerivedData/name-***/Build/Intermediates/ArchiveIntermediates/name/InstallationBuildProductsLocation/Applications/name.app cd /Users/***/Documents/name/App/platforms/ios export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "iPhone Developer: *** *** (S5L8942T98)" Provisioning Profile: "iOS Team Provisioning Profile: ***" (***) /usr/bin/codesign --force --sign *** --entitlements /Users/***/Library/Developer/Xcode/DerivedData/name-***/Build/Intermediates/ArchiveIntermediates/name/IntermediateBuildFilesPath/name.build/Release-iphoneos/name.build/name.app.xcent --timestamp=none /Users/***/Library/Developer/Xcode/DerivedData/name-***/Build/Intermediates/ArchiveIntermediates/name/InstallationBuildProductsLocation/Applications/name.app error: The specified item could not be found in the keychain.
I revoked all my certificates and created new provisioning profiles, unfortunately it didn't help.
Obviously something is missing in my keychain, but what? This is a screenshot of my keychain: https://i.stack.imgur.com/wjUXn.jpg
The Id matches the one from the error code. Can anyone give me a hint please?