问题
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
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 . . .
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
回答1:
When you see compiler errors looking for files that exist you should straight away realise that there is a naming issue conflict somewhere in the build settings of one of your targets, this was simply the case for me : mind boggling - but this post paved the way towards the answer
回答2:
you need to check you project name (e.g Demo) and project test name (e.g DemoTests.m ) must be same. if both name are not same then rename same as to Demo
回答3:
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.
来源:https://stackoverflow.com/questions/28576447/xcode-6-how-to-solve-precompile-prefix-header-error