What Password is needed to run Xcode?
Open system preferences and see if you can unlock a pane selecting the lock. 


https://support.apple.com/en-us/HT203127  


That password is the one for admin access and it’s the same password needed for Xcode to install additional components and get admin control to debug and package files.