3

我最近升级到 xcode 6.3.1。我尝试从“主详细信息应用程序”模板创建示例项目,但构建失败并出现以下错误。

  • 设备 - 通用
  • 语言 - 迅速
  • 不使用核心数据

错误:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/dispatch/dispatch.h:32:10:错误:'stdarg.h'文件不是成立

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/os/activity.h:38:9:错误:'uint64_t'的声明必须是在需要之前从模块“ObjectiveC.runtime”导入typedef uint64_t os_activity_t;

我是使用 Xcode 进行开发的新手。

4

2 回答 2

2

您安装的 Xcode(或模拟器)很可能已损坏。

您可以尝试重新安装开发者工具,或者完全重新安装 Xcode。

于 2015-05-12T12:53:21.957 回答
0

您可以尝试找出是否启用了 Objective-C 的模块。

你可以在这里检查它(按照路径):

  • 构建设置
  • Apple LLVM 6.1 部分 - 语言 - 模块
  • 启用模块(C 和 Objective-C)

这个问题的答案也可能是一个线索:How to disable "curses.h" header (a part of "stdio.h in Xcode 6.3 OSX Yosemite) to avoid conflicting function declarations

于 2015-05-11T17:01:56.427 回答