When archiving an app in XCode (Product > Archive) I get the following error:
CodeSign /Users/xxx/Library/Developer/Xcode/DerivedData/name-xxx/Build/Intermediates/ArchiveIntermediates/name/InstallationBuildProductsLocation/Applications/name.app cd /Users/xxx/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: xxx xxx (S5L8942T98)" Provisioning Profile: "iOS Team Provisioning Profile: xxx" (xxx) /usr/bin/codesign --force --sign xxx --entitlements /Users/xxx/Library/Developer/Xcode/DerivedData/name-xxx/Build/Intermediates/ArchiveIntermediates/name/IntermediateBuildFilesPath/name.build/Release-iphoneos/name.build/name.app.xcent --timestamp=none /Users/xxx/Library/Developer/Xcode/DerivedData/name-xxx/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?