'stdarg.h' 找不到文件错误
'stdarg.h' file not found error
我最近升级到 xcode 6.3.1。我尝试从 "Master Detail application" 模板创建示例项目,但构建失败并出现以下错误。
- 设备 - 通用
- 语言 - swift
- 不使用核心数据
错误:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/dispatch/dispatch.h:32:10:
error: 'stdarg.h' file not found
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/os/activity.h:38:9:
error: declaration of 'uint64_t' must be imported from module
'ObjectiveC.runtime' before it is required typedef uint64_t
os_activity_t;
我是使用 Xcode 进行开发的新手。
您可以尝试查看是否启用了 Objective-C 的模块。
您可以在这里查看(按照路径):
- 构建设置
- 部分 Apple LLVM 6.1 - 语言 - 模块
- 启用模块(C 和 Objective-C)
这个问题的答案也可能是一个线索:
可能是您安装的 Xcode(或模拟器)已损坏。
您可以尝试重新安装开发者工具,或者完全重新安装Xcode。
我最近升级到 xcode 6.3.1。我尝试从 "Master Detail application" 模板创建示例项目,但构建失败并出现以下错误。
- 设备 - 通用
- 语言 - swift
- 不使用核心数据
错误:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/dispatch/dispatch.h:32:10: error: 'stdarg.h' file not found
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/os/activity.h:38:9: error: declaration of 'uint64_t' must be imported from module 'ObjectiveC.runtime' before it is required typedef uint64_t os_activity_t;
我是使用 Xcode 进行开发的新手。
您可以尝试查看是否启用了 Objective-C 的模块。
您可以在这里查看(按照路径):
- 构建设置
- 部分 Apple LLVM 6.1 - 语言 - 模块
- 启用模块(C 和 Objective-C)
这个问题的答案也可能是一个线索:
可能是您安装的 Xcode(或模拟器)已损坏。
您可以尝试重新安装开发者工具,或者完全重新安装Xcode。