Xcode 6:如何解决预编译前缀标头错误 [英] Xcode 6: How to solve Precompile prefix Header error

查看:101
本文介绍了Xcode 6:如何解决预编译前缀标头错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将一直在使用的应用程序从Xcode 5移到了另一台运行Xcode 6的计算机上(在Xcode 5上运行良好)

I just moved an app i've been working on from Xcode 5, onto another computer running Xcode 6, (working fine on Xcode 5)

我现在收到以下错误

I now get the following error

我认为这是缺少.pch文件的问题,当我查看此目录时,我找到了该文件,但文件名为TMU-Prefix.pch而不是TMU_4.0-Prefix.pch

I assume this was an issue with a missing .pch file, when I look into this dir i found the file but its called TMU-Prefix.pch instead of TMU_4.0-Prefix.pch

我发现前缀标头必须设置不正确,所以我进入了构建设置来更改它,令我惊讶的是我的构建设置正在寻找正确的文件

I figured my prefix header must be set incorrectly so I went in to build settings to change that and to my surprise my build settings is looking for the right file

此文件确实存在于我的目录中. . .

This file which does indeed exist in my directory . . .

我对这个错误一无所知 在搜索后,我发现了这篇文章,其中Xcode 6需要创建我做了一个单独的.pch文件,但没有成功

I'm clueless as to this error upon search I came upon this post where Xcode 6 requires creating a separate .pch file i did and yet no success

一如既往,非常感谢您的帮助

As always, Any help is much appreciated

推荐答案

同时检查项目文件的构建设置和目标文件的构建设置.如果在任何文件中指定了错误的文件,都会出错.

check both the project file build settings and target file build settings.If in any of the file its is incorrectly specified you will get error.

这篇关于Xcode 6:如何解决预编译前缀标头错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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