ios - Xcode reference a framework instead of link binary with libraries -
when developing cocoa touch framework, how can use code third party framework referencing other including in "link binary libraries" option?
i dont want link binary in order prevent symbol conflicts between hosting project , framework (project use framework)
additionally need framework code use hosting project reference third party framework, how can done?
or should take different approach example static framework (i not familiar small differences of two)
- select target want modify , reveal build phases.
- expand link binary libraries build phase view frameworks linked target.
- if framework want weakly link listed in link binary libraries build phase, select it, , choose edit > delete remove it. can tell linker use weak linking framework.
- select target, open info window, , click build.
- to other linker flags build setting, add following command-line option specification, name of framework want weakly link to:
-weak_framework <framework_name>
- build product.
here docs section that. docs
more this part.
Comments
Post a Comment