Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - Install additional required components using command line

Tags:

xcode

macos

I recently got a used Mac with Mountain Lion on it. I don't know of the admin password or anything, but I do know how to run a command line.

So here's what I am stuck on: asdf

When I click install, it asks me for my username and password (which I don't know).

I want to install this via single-user mode (Cmd+S on Startup), which I accepted the license using it.

Do you guys know how I could achieve this?

like image 914
x86cam Avatar asked Oct 29 '13 20:10

x86cam


People also ask

What is command line developer tools Mac?

They allow programmers to compile programs and debug them, convert files, and perform a number of tasks for handling the resources required for making applications and other tools. Running the Terminal-based developer tool “make” on a system without the command line tools installed will prompt you to install them.

Does Xcode support Ruby?

Apple's Xcode Command Line Tools provide a C language compiler. You'll need it to install Ruby. Also, for many Ruby projects, you will need the C language compiler to automatically install gems that use native extensions (some gems speed up Ruby by using code written in C).


1 Answers

At least on Xcode 9.2, you could use:

sudo xcodebuild -runFirstLaunch 

to accept the agreement and install additional components.

like image 54
Anshul Avatar answered Sep 21 '22 09:09

Anshul