Xcode refers to a structure instead of a binary link channel with libraries

When developing a cocoa touch framework, how can I use code from a third-party structure by referencing it and then including it in the "link binary with libraries" options?

I don’t want to refer to binary code to prevent character conflicts between the hosting project and the framework (the project that will use the framework)

In addition, I will need a frame code to use a link to a hosting project from a third-party structure, how to do this?

Or should I use a different approach like static framework (I am not familiar with the slight differences of the two)

+6
source share
1 answer
  • Select the target you want to change and show its assembly phases.
  • Expand the Link Binary With Libraries component to view the frameworks that are currently associated with the target.
  • If the structure you want to link weakly to is specified in the binary link building phase, select it and choose Edit> Delete to remove it. Now you can say that the linker uses a weak link for this structure.
  • Select the target, open its information window and click "Build".
  • In the configuration settings for the other linker flags, add the following specification of command line parameters, where is the name of the structure you want to weakly reference:
-weak_framework <framework_name> 
  1. Create your product.

Here is the documentation section for this. Documentation

This part is more detailed.

+4
source

All Articles