Xcode-使用命令行安装其他必需的组件 [英] Xcode - Install additional required components using command line

查看:164
本文介绍了Xcode-使用命令行安装其他必需的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我有一台二手Mac,上面装有Mountain Lion.我不知道管理员密码或其他任何内容,但是我知道如何运行命令行.

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:

当我单击安装时,它会询问我用户名和密码(我不知道)

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

我想通过单用户模式(启动时为Cmd + S)安装此程序,我已使用该模式接受了许可证.

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?

推荐答案

至少在XCode 9.2上,您可以使用:

At least on XCode 9.2, you could use:

sudo xcodebuild -runFirstLaunch

接受协议并安装其他组件.

to accept the agreement and install additional components.

这篇关于Xcode-使用命令行安装其他必需的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆