ios - Xcode 4.1 fatal error : stdlib modified since the precompiled header was built

标签 ios xcode compiler-errors

构建 iPhone 应用程序,使用:

  • Xcode 4.1
  • 基础 SDK iOS 4.3
  • Apple LLVM 编译器 2.1

我开始收到以下错误:

fatal error: file '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/../lib/clang/2.1/include/stdint.h' has been modified since the precompiled header was built

我已经尝试重新安装 Xcode 和 OS X - 没有成功。这是什么原因造成的?

最佳答案

首先尝试通过 Product -> Clean 菜单(从 XCode 4.6.2 开始)进行干净构建。

如果仍然不起作用,请打开管理器(从菜单中选择窗口->管理器)。打开管理器后,从窗口顶部的工具栏中选择项目。左侧是项目列表,选择您遇到问题的项目。

详细信息面板(列表右侧)将显示项目名称、位置、状态。下面的行显示派生数据所在的位置。单击最右侧的删除...按钮。将出现一个对话框,单击删除。

您也可以手动删除派生数据:

~/Library/Developer/Xcode/DerivedData/{project name + gobly-gook}

此目录包含项目的构建产品和索引。 OK 可以删除它,因为它只包含 Xcode 生成的项目。下次打开项目时,Xcode 将重新生成所有内容。

关于ios - Xcode 4.1 fatal error : stdlib modified since the precompiled header was built,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7071523/

相关文章:

iOS 下拉 Ajax

ios - 应用程序运行时不显示自定义原型(prototype)单元格

iphone - 在真实iPhone中测试应用程序,但它仍然运行旧版本应用程序?

swift - 当 contentmode 为 Scale to fill 时,UIImageView 会更改其大小

haskell - 如何更改 GHC 编译器错误消息的打印方式?

ios - Unity3D/Xcode : Debug Logs not available on Device, 在控制台中看不到

ios - 如何在没有分隔符的情况下拆分单词?

ios - 无法在我的 iOS9 应用程序中打印 FBSDKAccessToken.currentAccessToken().tokenString

c++ - boost::spirit::qi 编译器错误:没有转换运算符无法将 'const some_stuff::return_type' 转换为 'unsigned int'

c++ - C3646和C4430是否由于头文件层次结构?