Error/IOS/Flutter

🚨Error: Xcode's license has not been agreed to

calendar

2024-02-22

6

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.

xcode-err

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

agreement-step-1

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.

agreement-step-2

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

agreement-step-3

When we put "agree", it's done.


URL:
https://joyfulhome.tistory.com/233
aImg