Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
228
Help us understand the problem. What is going on with this article?
@kazoo04

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

More than 5 years have passed since last update.

なにかのコマンドを実行した時に

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.

Password:


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'

Enterを押すとライセンスが表示されて、最後に

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です。

228
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
228
Help us understand the problem. What is going on with this article?