Recently whilst trying to deploy a project with git, the command would fail/error and print out, “Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.”
Apparently Xcode had updated and I had to either… open Xcode and manually agree to the licence or in terminal type, `sudo xcodebuild -license`. That meant my local git would run again and I could one click deploy that bad-ass.
I’m not entirely sure why Xcode has anything to do with my git repos, however, it works for the time being. HTH !