I started using Xcode to package and submit my app yesterday, but it failed. I received a prompt "Your app must be registered with App Store Connect before it can be uploaded. Xcode will create an app record with the following properties." halfway through the process. After filling it out and submitting, I received another prompt "App Record Creation Error,App Record Creation failed as you do not have permission to perform requests of this type."。
I have already listed several apps on the app store. For the other apps, I also tried creating new versions, packaging, and submitting them, but I encountered the same error
The issue is indeed related to "my account having administrative permissions under another company's account". My personal account has been assigned "administrative" permissions (with the authority to manage certificates) under another company's account. Yesterday, I tried to remove my account from that company's account. Today, when I tried to package and submit, Xcode prompted me to access my certificate (presumably the certificate for my personal account). After I agreed, everything proceeded smoothly. It seems that when my account has administrative permissions for multiple accounts, Xcode uses the wrong certificate.