'stdarg.h' file not found error

非 Y 不嫁゛ 提交于 2019-12-11 03:49:55

问题


I recently upgraded to xcode 6.3.1. I tried creating a sample project from "Master Detail application" template, but build failed with the below error.

  • Device - Universal
  • language - swift
  • Not using Core Data

Errors:

/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;

I am new to development using Xcode.


回答1:


It is likely that your installation of Xcode (or the simulator) is damaged.

You can try reinstalling the developer tools, or completely reinstall Xcode.




回答2:


You can try to find out whether you've got modules for Objective-C enabled.

You can check it in here (follow the path):

  • Build Settings
  • section Apple LLVM 6.1 - Language - Modules
  • Enable Modules (C and Objective-C)

The answer to this question might be a clue as well: How to disable "curses.h" header (a part of "stdio.h in Xcode 6.3 OSX Yosemite) to avoid conflicting function declarations



来源:https://stackoverflow.com/questions/30172986/stdarg-h-file-not-found-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!