XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Clang settings appears to be applied to the wrong configuration list in the project.pbxproj file

Open tww0003 opened this issue 2 years ago • 5 comments

Clang settings appear to be added to the wrong configuration list within the project.pbxproj file.

When trying to set CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED to YES in order to silence a warning, Xcodegen adds them to the PBXNativeTarget build configuration list while changing the setting within Xcode applies it within the PBXProject build configuration list.

Is there a way to make sure that this setting gets applied to the correct configuration list?

tww0003 avatar Mar 01 '22 19:03 tww0003

You can apply the setting to the whole project under the top level settings, instead of in a target

yonaskolb avatar Mar 17 '22 23:03 yonaskolb

Still an issue.

Setting it on the project level works, but I believe it should also be possible setting on individual targets.

philprime avatar Feb 06 '24 10:02 philprime

I'm not sure I understand the issue? What is Xcode doing that is different? If when you're applying this in Xcode using the Build Settings tab, it applies the set build setting depending at which level you click on (target, project, config..etc). Is there something specific about this particular build setting I'm not understanding?

yonaskolb avatar Apr 07 '24 13:04 yonaskolb