I'm building an app using Xcode 6 beta 6. I manually added a prefix file, and specified it in the Build Settings: $(SRCROOT)/$(PRODUCT_NAME)/MyApp-Prefix.pch
. The file compiles, and the symbols defined there are not highlighted as undeclared in the editor. However, when I build the project, I get "undeclared identifier" errors for the macros defined in the prefix file. What's going on?
What I've tried:
- Set Precompile Prefix Headers to YES (default is NO)
- Clean the build folder and delete the derived data folder
What's interesting is the .pch file definitely gets compiled at build time. If I introduce a syntax error there, it gets called out in build results. If the pch file compiles OK, then the compiler starts acting like it can't find it when building the files that use it.