Warning flags applied to system framework headers in Xcode 8.3 beta
| Originator: | me | ||
| Number: | rdar://30230767 | Date Originated: | 27-Jan-2017 09:47 AM |
| Status: | Closed (Duplicate) | Resolved: | |
| Product: | Developer Tools | Product Version: | 8.3b1 |
| Classification: | 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.
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!
Engineering has determined that your bug report (30230767) is a duplicate of another issue (30182468) and will be closed.
Example project can be found here:
https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/30230767%20-%20SystemHeaderWarningsExample