---
title: "Git – Apple license requirement message"
id: "16099"
type: "epkb_post_type_1"
slug: "git-apple-license"
published_at: "2017-01-30T14:51:30+00:00"
modified_at: "2019-11-15T20:00:30+00:00"
url: "https://docs.rc.fas.harvard.edu/kb/git-apple-license/"
markdown_url: "https://docs.rc.fas.harvard.edu/kb/git-apple-license.md"
excerpt: "Mac OSX uses Apple’s Xcode for its git integration. However, if Xcode’s license has changed you will have to accept it before you can proceed. The error you will see is similar to: “Agreeing to the Xcode/iOS license requires admin..."
taxonomy_epkb_post_type_1_category:
  - "Software"
---

# Git – Apple license requirement message

Mac OSX uses Apple’s Xcode for its git integration. However, if Xcode’s license has changed you will have to accept it before you can proceed.  
 The error you will see is similar to:  
 *“Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.”*  
 To accept the license without opening the Xcode GUI, you can use the following command:  
 `sudo xcodebuild -license`  
 You can then re-try your git command.

Last UpdatedNovember 15, 2019
