Class X is implemented in both Y and Z. One of the two will be used

后端 未结 4 493
眼角桃花
眼角桃花 2021-01-11 14:21

I\'ve got an objective-c \"tool\" (console) program that dynamically loads objective-c bundle\'s at runtime. Some of the bundle files share classes from the same framework s

4条回答
  •  清酒与你
    2021-01-11 14:52

    • If they are different implementations, use a unique prefix.

    • If they're the same implementation and just exported by more than one image, reconfigure your targets so it's exported by only one.

    Specifically:

    Is there a way that the bundle's could be changed so they don't both compile/link the same classes?

    Stuff those shared classes in a separate framework, and do not compile them as part of the bundle -- just link the bundle to the framework of shared stuff.

提交回复
热议问题