Yes, the problem is not with Xcode. Codesign tool also fails. If you look in Keychain, it shows that Apple Development certificate is not trusted. If I touch something in keychain, for example, add/remove any certificate, it becomes Trusted. Apparently there is something wrong with the MacOS 13.0 system.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: