No active account

I created an app that uses the camera function in Xcode, but it says I don't have camera permission. The app only runs once and then won't run again. The log below says "No active account." Is this because my paid account isn't properly reflected in Xcode? In Xcode Settings > Account, I'm logged in my acciunt, with the team set to "my Organization name" and the role set to "admin." However, in Manage Certificates, the Status is blank. It should say "Valid." How can I properly reflect my account in Xcode?

Error enumerating all transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account}

No active account
 
 
Q