Xcode 4.1 致命错误:自构建预编译头以来已修改 stdlib [英] Xcode 4.1 fatal error: stdlib modified since the precompiled header was built

查看:26
本文介绍了Xcode 4.1 致命错误:自构建预编译头以来已修改 stdlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建一个 iPhone 应用程序,使用:

Building an iPhone app, using:

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

我开始收到以下错误:

致命错误:文件'/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/../lib/clang/2.1/include/stdint.h'自构建预编译头以来已被修改

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 - 没有运气.这是什么原因造成的?

I have tried reinstalling Xcode and OS X - no luck. What's causing this?

推荐答案

首先通过 Product -> Clean 菜单(从 XCode 4.6.2 开始)尝试清理构建.

First try a clean build via the Product -> Clean menu (as of XCode 4.6.2).

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

If that still doesn't work then open the Organizer (from the menu select Window->Organizer). Once the Organizer is open, select Projects from the toolbar at the top of the window. On the left is a list of projects, select the one you are having a problem with.

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

The details panel (to the right of the list) will display the project name, location, status. The row beneath that shows where the Derived Data is located. Click the Delete... button the far right. A dialog will appear, click Delete.

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

You can also manually delete the Derived Data:

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

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

This directory contains built products and indexes for the project. It is OK to delete it because it only contains items generated by Xcode. Xcode will regenerate everything next time the project is opened.

这篇关于Xcode 4.1 致命错误:自构建预编译头以来已修改 stdlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆