Add third party framework to Xcode subproject or main project in iOS app -


my xcode project "mymainapp" has static library type xcode subproject called "mylib". need use third party ios frameworks in ios app. want add/link them against mylib , not against mymainapp can make mylib reusable , self-contained use in other ios apps too. few view controllers in mymainapp use 1 of view controller part of mylib. view controller in mylib uses functionality classes reside inside third party framework. problem facing if add third party frameworks mylib , don't add them mymainapp, linker error "lexical or preprocessor issue. xxx.h file not found". works if addd frameworks both mymainapp , mylib not want. have made sure framework search paths , header search paths correct. i've been unable find reference apple in such scenario. i'd know best practice adding/linking third party frameworks , libraries xcode subproject of type static library. there solution overcome linker error , add frameworks static library project?

  1. go 'build phases' 'mylib'
  2. add '3rd party ios framework' under 'copy bundle resouces'
  3. compile 'mylib'
  4. remove '3rd party ios framework' 'mymainapp'
  5. run 'mymainapp'

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -