While attempting to compile my C program, running the following command:

gcc pthread.c -o pthread

Returns:

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

and my code does not compile.

Why is this happening and how can I fix this problem?

推荐答案

Open up Xcode, and accept the new user agreement. This was happening because a new version of Xcode was downloaded and the new agreement was not accepted.

Ios相关问答推荐

iPhone:iOS 17.4中没有气压数据

带有动画层的UIView表示不会在工作表中设置动画

滚动时突出显示工具栏项目

当文本为空时,具有垂直轴的SwiftUI文本字段不会与FirstTextBaseline对齐

带菜单的选取器不适用于Int32,但适用于Int

执行devicectl:ProcessException时出错:进程异常退出:错误:命令超时超过5.0秒

如何在Swift中同时实现三个手势?

如何在@AppStorage中存储字体?

如何在Swift/Combine中从timer.publish属性传递两个参数到任意方法

SwiftUI - TextField - 在焦点上清除 Double 类型的值,在取消 Select 时恢复

滚动 swiftUI 列表时,未调用单元格的任务修饰符.怎么修?

SwiftUI withAnimation 在视图出现之前不会启动

如何包含 Xcode 子项目标头?

try 在 iOS 中分发 Flutter 应用程序时出现Invalid Provisioning Profile Signature错误

如何设置imageView的圆角半径?

如何找出坐标之间的距离?

导航控制器自定义过渡动画

如何获取 iTunes 连接团队 ID 和团队名称?

UINavigationBar - 以编程方式设置标题?

使用 xib 创建可重用的 UIView(并从情节提要中加载)