Xcode xcconfig: setting dependency based on target
While looking for an Objective-C namespace solution, I would like to experiment with prefixing Objective-C dependency classes based on the constructed target.
As an example, let's say I have a ObjCStaticLib
class ( CWindow
) in my shared library ( ). I have two plug-in ( A
and B
) that will use this CWindow
. To avoid clashing A
CWindow
with B
CWindow
, I want to prefix the class name CWindow
at compile time, so A
CWindow
becomes ACWindow
and B
becomes BCWindow
.
I'm looking for a way to communicate with ObjCStaticLib
at compile time what prefix it should use to compile. I am thinking of using xcconfigs to specify a preprocessor macro that sets up the target page of the sheet and what is used ObjCStaticLib
. However, I don't know how the target is to "swap" with such a dependency.
I can change all sources / projects / etc that are needed to implement a per client namespace setting depending on the dependency.
Does anyone have a good solution for this?
source to share
No one has answered this question yet
See similar questions:
or similar: