Xcode validation checks doesn't consider settings from config files

Originator:david.ronnqvist
Number:rdar://25952063 Date Originated:27-Apr-2016
Status:Duplicate of 20873320 (Open) Resolved:
Product:Developer Tools Product Version:
Classification:U/Usability Reproducible:Always
 
Summary:
This is a duplicate of rdar://20873320 with the only difference that this is for Xcode 7.3

Description from that bug below:
Currently when a new version of Xcode encounters an older project file, certain validation tests are performed, and suggested remedies are presented for projects with settings that don't match Apple's recommendations.

The problem is a well-managed project might include settings that match Apple's recommendations but rather than being set explicitly on a project or target node, are instead inherited from a project or target base .xcconfig file. In this scenario, Xcode repeatedly nags about updating the project or target even though the desired setting already shines through.

The problem with allowing Xcode to simply set the desired settings on the project or target is it shuts down the ability to accurately control build settings from the centralized location in the .xcconfig file. For example I do set ONLY_ACTIVE_ARCH = YES for my Debug builds, but I want to retiain the ability to reliably flip that setting or any other from the .xcconfig file with confidence that it will have the intended impact. If I add the setting ot the project itself then I lose that centralized control.

Steps to Reproduce:
1. Open the attached ProjectValidationConfigBug.xccodeproj in Xcode 7.3 or higher.
2. Editor > Validate Settings...

Expected Results:
Because the projects resolved settings DO meet the Xcode's standard guidelines, there should be no warning issued.


Actual Results:
A warning appears indicating that the project should be updated to "recommended settings." Clicking the warning yields the panel that will, if allowed, update the project by adding an explicit ONLY_ACTIVE_ARCH = YES setting ot the project itself.

Version:
Xcode 7.3 (7D175)
OS X 10.11.4 (15E65)

Notes:


Configuration:


Attachments:
'ProjectValidationConfigBug.zip' was successfully uploaded.

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!