This just happened to me again. Instantly all my #defines that are #imported in the Defaults.h within the .pch suddenly can't be referenced.
I had started commenting out code in a class that doesn't reference the #defines at all and then, BLAM, "Too many errors" Now, if I can only remember what I did to get this fixed the last time it happened. Jesus. On May 15, 2015, at 7:30 AM, Dave wrote: > 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/zav%40mac.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]
