Hi,

I think since the “modules” facility was added, the PCH file handling is 
broken. I’ve had the problem you describe and found the only way to be safe is 
to Clean the project whenever you make a change to anything related to the PCH 
file.

All the Best
Dave



> On 21 Apr 2015, at 16:00, Alex Zavatone <[email protected]> wrote:
> 
> From what I can gather on this iOS project, 30 build errors appeared because 
> for some reason, Xcode thinks that the Defaults.h file which is imported in 
> the .pch is no longer present.
> 
> Errors are being flagged for every #define within the app.
> 
> I looked in the .pch, and Defaults.h is being imported under #ifdef __OBJC__
> 
> Defaults.h is present within the project.
> 
> Adding #import Defaults.h to each of the files resolves the errors, but this 
> means that one line in the .pch is not getting called.
> 
> Rebuilding the app, cleaning the app, quitting and restarting Xcode all don't 
> resolve this.
> 
> What's the recommended process here to get Xcode to resolve this?  I've quit 
> and restarted Xcode 
> 
> Should I just modify the .pch and rebuild?
> 
> Thanks in advance.  This is terribly frightening to see happen.
> 
> Alex Zavatone
> 
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/xcode-users/dave%40looktowindward.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to