More than 5 years have passed since last update.

Agreeing to the Xcode/iOS license... のエラーがでた時の対処法

Last updated at Posted at 2014-01-12


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

こういうときは、まあメッセージにある通りなんですけど Xcode のライセンスに同意する必要があるので、Xcodeを起動して出てきたダイアログの "Agree" を押せばOKです。

Xcode and iOS SDK License Agreement

コマンドライン上からやりたいときは sudo xcrun cc です。

$ sudo xcrun cc

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.


You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'


By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel]  

と聞かれるので指示通り agree と入力すればOKです。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up