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?

+2
objective-c xcode


source to share


No one has answered this question yet

See similar questions:

167
What's the best way to resolve Objective-C naming conflicts?
0
Objective-C function collision; Or how to achieve "namespaces"?

or similar:

1348
How to "add existing frames" in Xcode 4?
981
How to download Xcode DMG or XIP file?
868
Xcode error "Could not find developer disk image"
818
Git ignore file for Xcode projects
805
Xcode 7 error: "Missing iOS Distribution Subscription ID for ..."
746
Failed to start Xcode process: security
576
How can I highlight multiple lines in Xcode?
575
The vs version for build in Xcode
549
Where can I find the line number in the Xcode editor?
6
Setting preprocessor macros for a cocoapod dependency, no markup



All Articles
Loading...
X
Show
Funny
Dev
Pics