Xcode51-DP (5B45j): Validate project settings warning does not take account of xcconfig files

Originator:sam
Number:rdar://15503842 Date Originated:19-Nov-2013 05:32 PM
Status:Duplicate of 13433596 (Open) Resolved:
Product:Developer Tools Product Version:Xcode51-DP (5B45j)
Classification:Other Bug Reproducible:Always
 
Note: Apple marked this as a duplicate of rdar://13433596.

Summary:

When updating projects, Xcode suggests changes to the project, but it ignores settings that are already set in xcconfig files.

See the example project:  https://github.com/samdeane/XcodeValidateWarningBugExample.git

Steps to Reproduce:

Clone https://github.com/samdeane/XcodeValidateWarningBugExample.git

Open it with XC5.1

Observe that the project is set to use Test.xcconfig, which defines:

ONLY_ACTIVE_ARCH = YES

Observe that Xcode is offering to update the project because it believes that Build Active Architecture is not set.

Expected Results:

I would expect Xcode to notice that it doesn’t need to add a setting for ONLY_ACTIVE_ARCH as it is already enabled via the xcconfig file.

Actual Results:

Xcode offers to set the option. Clicking “Perform Changes” adds a superfluous setting to the target, which masks the setting inherited 
from the xcconfig file. If the xcconfig is changed later, the change will not be inherited.

Regression:

This has been happening for many Xcode versions.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

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!