handling dependencies for iOS Framework project -


i've created ios framework project using method: https://github.com/jverkoey/ios-framework

works pretty neat i'm little confused on how include libraries/frameworks needed framework work and, in particular, how in case 3rd party client app uses framework can include these libs without conflicts.

let's framework code needs these 2 things:

  • facebooksdk.framework
  • libflurry.a

the first 1 ios framework. when add "link binary libraries" phase in framework , try compile the client project uses framework linker complains missing symbols - need add facebooksdk client project great: there no possibility of conflicts if client apps wants use facebook.

however when same flurry static library duplicate symbols error when compiling client project. confuses me bit, because isn't facebooksdk.framework packaged static library?

ukaszs-imac:facebooksdk.framework lukasz$ file versions/a/facebooksdk  versions/a/facebooksdk: mach-o universal binary 3 architectures versions/a/facebooksdk (for architecture i386): current ar archive random library versions/a/facebooksdk (for architecture armv7):    current ar archive random library versions/a/facebooksdk (for architecture cputype (12) cpusubtype (11)): current ar archive random library 

so questions are:

  1. why library embedded in framework (like facebook) not linked framework project product, whereas library included .a file is?
  2. how include .a file in framework not produce duplicate symbols error when client app using framework needs particular static library?

for use case describing, should linking these external libraries application, not own framework. can 1 or other, can't both.

if decide these dependancies belong responsibility of application, remove them "link binary libraries" , other explicit linking configuration, , project framework project path these frameworks , libraries can find symbols (but not link against them) @ compile time (i.e. path libraries should included library_search_paths).


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -