EDIT: I figured one could have this problem with any build configuration setting, not just OTHER_LDFLAGS
and I've changed the title accordingly and removed irrelevant details from the question.
I have a simple Xcode project MyApp. MyApp.xcconfig is set as the configuration file for Debug builds. It has one line:
OTHER_LDFLAGS = -force_load /foo/bar
Though it knows MyApp.xcconfig sets OTHER_LDFLAGS
Xcode doesn't want to use that setting. A blank space, instead of the value in MyApp.xcconfig, is highlighted in green in the build settings (see the bottom rows labelled "Other Linker Flags"):
Why is this the case? From what I've read, it seems like the resolved setting should be the one from the .xcconfig file. Is there a way to make it so?
I've also found that other settings in the xcconfig do resolve. But not OTHER_LDFLAGS
.