The fact that there are different keys for the “GM” and “Beta” versions explains why accepting a license for a beta does not result in the acceptance of the license for a GM version, and vice versa. Click the Entry key to view the license agreements in `/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf` Solution: Run in the `sudo xcodebuild-license` terminal, then accept the terms. During the license agreement, the cumbersome “uchg” prevents Xcode from updating the file. If set, simply run the following command in the terminal to remove the option: The new box has accepted the default license, and I maintain the acceptance instructions in Readme. (Tnx to @stopiccot) You can then restart Xcode 6 and licensing agreements. Tested with Xcode 6 beta 2. Xcode`s “Acceptance” license status is recorded in a list of properties in /Library/Preferences/com.apple.dt.Xcode.plist. This option is not accessible with a preconfiguration API, but only reading and writing in a property list file. There are four keys that can store this license-related information. To see what I currently have on my system, I print plist content: Xcode uses an XPC service with roots privileges to accept the license and install packages. This does exactly what you mentioned: With several versions of Xcode, you have to accept different versions of the agreement. There are two important commitments to know about this: after installing XCode 6 and running, the license dialog box appears.
I click “Accept.” And that`s it… Nothing. The dialogue is still in place. Although the license dialog box is removed, it remains stuck in the “Install Additional Components” dialog box. It`s great. Try using xcodebuild to accept the license. Complete Xcode and run the following: The -license solution worked for me after installing Sierra (10.12.2) Does not work. You have not accepted Xcode licensing agreements. You must accept both licensing agreements in order to use Xcode.
This useful tip with xcodebuild works if you only need to provide one Xcode application, but the situation becomes less clear when you manage several on a single computer. And you may have seen from time to time that you install another version of Xcode (or a beta) on your own computer, that you will have to accept the license again. What exactly is going on? However, after pressing several times, it just doesn`t ything. The license agreement is not displayed.Read More