When we use git on Mac, there is a common issue about xcode. To develop IOS application, we need to use xcode.
Problem
We may experience the following error when using the collar for the first time on the Mac, or after it has been reset.
The reason why this error occurs is that we don't accept the agreement. It's very easy to solve it.
Solution: How to accept xcode license when running git on Mac
1️⃣ Run sudo xcodebuild -license
To accept the agreement, put sudo xcodebuild -license on the terminal.
After run the above code, we can see the content of the agreement of the xcode and apple SDK.
2️⃣ Agree
If anything related to xcode and applesdk's consent comes out, ask if you agree to these like this.
If you agree to this, enter agree
If you want to print, type print
If you want to cancel, it will tell you to type cancel.
We have to agree and use it, so enter agree.
3️⃣ Done
When we put "agree", it's done.



