How to add a static library to a project that uses cocoapods (iOS) -


i have project uses cocoapods time. recently, bought external library vendor. library sent me static library (.a) , 2 headers files (.h).

i imported both files , added static libraries build phases -> link binary librareis. however, project can not find static library.

the same library works fine on project not use cocoapods (and workspace). think compatibility problem configuration made cocoapods. i've tried add static library path header search path , library search path. no success.

any suggestions?

the standard procedure of adding library is

  1. add other linker flags -l${name_of_library_without_lib_prefix_and_.a_suffix}, example libz.a -lz
  2. add library library search path. there useful global vars

$(project_dir)

$(srcroot)

you can reference while defining path library

  1. add header search path path library headers. can use $(project_dir) , $(srcroot) part of path.

as using external libraries cocoapods - there should no difference apart having $(inherited) first line of settings - library search path, header search path , other linker flags.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -