gpt4 book ai didi

ios - 使用 GCC 时为 "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo."

转载 作者:IT王子 更新时间:2023-10-29 07:24:24 26 4
gpt4 key购买 nike

在尝试编译我的 C 程序时,运行以下命令:

gcc pthread.c -o pthread

返回:

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

我的代码无法编译。

为什么会发生这种情况,我该如何解决这个问题?

最佳答案

打开Xcode,接受新的用户协议(protocol)。发生这种情况是因为下载了新版本的 Xcode,但未接受新协议(protocol)。

关于ios - 使用 GCC 时为 "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26197347/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com