ios - Is it required to add a corelocation framework in my project, if I am using it in my own framework -


i using corelocationframework in custom framework created,after integrating framework project got below error after running application

undefined symbols architecture i386: "_objc_class_$_cllocationmanager", referenced from: objc-class-ref in myframework "_kcllocationaccuracybest", referenced from: -[utility getcurrentlocation] in myframework ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation)

after added same corelocationframework in project error not comming code working.

so want know reason behind , happened if added other frameworks also?

any time building static library or framework relies on framework, have link framework framework , final project well.

if publishing framework somewhere other people use, should have instructions state after install framework, must link corelocation well.

example:

myframework --> frameworks    --> corelocation.framework  myapp --> frameworks    --> myframework.framework    --> corelocation.framework 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -