I've followed all the posts (most of which are fairly stale).
I've generated dozens of certificates both for "Apple Development" and "Apple Distribution", created several profiles of "iOS App Development" and "App Store Connect".
Up until now I have had very little problem installing my app (generated using Ionic/Capacitor v5/Angular v16, Xcode 15.4, macos 14.6).
Now when I try to install directly on a test device (I've used regularly, previously), I get "Failed to verify code signature of... The identity used to sign the executable is no longer valid..."
I've restarted Xcode and macbook. I've deleted all certificates and revoked all profiles, and started over.
I have tried using automatic signing and manual signing.
Nothing is working.
I just want be able to install the app on a test device (mostly to see logs in Xcode's console), and to be able to upload the same app to appstoreconnect.
What am I doing wrong?