If you're still stuck, this Apple dev forum thread has some magic commands:
https://developer.apple.com/forums/thread/711847
The `xcrun altool` commands helped me reset my session when nothing else worked.
https://developer.apple.com/forums/thread/711847
The `xcrun altool` commands helped me reset my session when nothing else worked.
