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

标签 ios xcode gcc

在尝试编译我的 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/

相关文章:

ios - Tableview 滑动删除方法未被调用

ios - UILabel 始终为零

android - flutter + firebase + Stripe

ios - UIView 类中的 CollectionView IBOutlet 返回 nil - 只是有时?

ios - 如何在 IBOutlet 上创建可配置属性

c - 如何找到源代码的依赖关系?

ios - AudioKit Recorder 示例因 iOS 的 EXC_BAD_ACCESS 而崩溃

ios - 设置 UITabBar 的高度

gcc - AVR-GCC:错误:行尾有垃圾

gcc - 如何对 Linux 内核进行反优化以避免值(value)被优化掉