Xcode 8 shows errors for items included from PCH file

Originator:percysnoodle
Number:rdar://29436807 Date Originated:2016-11-30
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.1 (8B62)
Classification:Serious Bug Reproducible:Always
 
Summary:
Our project has a PCH file which includes macros which are used throughout the project.  While editing, Xcode shows errors for "use of undeclared identifier" or "implicit declaration of function" whenever these macros are used, even though the project builds successfully.

Steps to Reproduce:
1. Create a project which uses a PCH file (earlier versions of Xcode did this automatically)
2. Create a header file which defines a macro
3. #include the header file from the PCH file
4. Use the macro in your project

Expected Results:
No error should show in the sidebar

Actual Results:
Errors show in the sidebar

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!