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?
- go 'build phases' 'mylib'
- add '3rd party ios framework' under 'copy bundle resouces'
- compile 'mylib'
- remove '3rd party ios framework' 'mymainapp'
- run 'mymainapp'
Comments
Post a Comment