XCode 4.1致命错误:stdlib修改,因为预编译头构建 [英] XCode 4.1 fatal error: stdlib modified since the precompiled header was built

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

问题描述

建立iPhone应用程式,使用:

Building an iPhone app, using:


XCode 4.1

XCode 4.1

SDK iOS 4.3

Base SDK iOS 4.3

Apple LLVM编译器2.1

Apple LLVM Compiler 2.1

以下错误:


致命错误:file
'/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. Anyone know what's causing this?

推荐答案

首先通过产品 - >清洁菜单)。

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}

此目录包含项目的内置产品和索引。它是确定删除它,因为它只包含由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天全站免登陆