Warning flags applied to system framework headers in Xcode 8.3 beta

Originator:steipete
Number:rdar://30233378 Date Originated:27-Jan-2017 03:35 PM
Status:Open Resolved:
Product:Developer Tools Product Version:8.3b1
Classification:Enhancement Reproducible:Always
 
Summary:
Warning flags for a project are also applied to system framework headers in Xcode 8.3 beta resulting in build warnings and/or errors. This works properly in Xcode <= 8.2.x.

Steps to Reproduce:
1. Install Xcode 8.3b1
2. Open attached `SystemHeaderWarningsExample` project in Xcode 8.3b1
3. Build & run tests (Command + U)

Expected Results:
Build should finish without warnings or errors.

Actual Results:
Build fails with the following error: `Declaration of instance variables in the interface is deprecated`. The error originates in a system framework header, here in `XCTest/XCTWaiter.h` (and others).

Regression:
This problem occurs with Xcode 8.3b1 but not with Xcode 8.2.x.

Notes:
Adding `--system-header-prefix XCTest/` to `Other Warning Flags` explicitly fixes the problem. See also rdar://30230767

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!