Xcode just crashes when either is attempted. The app can be deployed directly to a device for testing.
I’ve also checked that agreements are all accepted and have tried updating certificates.
I see some previous posters with the same problems. Has anyone found a solution?