2015-05-11 93 views
2

我最近升級到xcode 6.3.1。我試圖從「主細節應用程序」模板創建一個示例項目,但構建失敗,出現以下錯誤。'stdarg.h'文件未找到錯誤

  • 設備 - 通用
  • 語言 - 迅速
  • 不使用核心數據

錯誤:

/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的是新的發展。

+0

你確定Xcode沒有損壞嗎?你安裝了開發者工具嗎?可能安裝它們或重新安裝Xcode有幫助。 – idmean

+1

是的..它的工作..完全刪除Xcode並重新安裝後,它的作品。 – user3923049

+1

我很高興我能幫助你。我會發布這個建議作爲答案,因爲它解決了你的問題。如果你想要,你可以接受它。這明確表明你的問題已經解決,並會給你我一些聲譽。 – idmean

回答

1

它是lik尤其是您的Xcode(或模擬器)的安裝已損壞。

您可以嘗試重新安裝開發人員工具,或完全重新安裝Xcode。

0

您可以嘗試瞭解是否已啓用Objective-C的模塊。

您可以點擊此處查看(遵循的路徑):

  • 構建設置
  • 部分蘋果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

+1

我檢查了設置。默認情況下,「啓用模塊設置爲YES」。仍然看到這個錯誤 – user3923049