ios - CLLocation subclassing on OSX -


i'm working on more advanced cllocationmanager mock 1 provided xcode , ran strange issue. have subclassed both cllocationmanager , cllocation:

// foobar.h @interface mylocation : cllocation @end  @interface mylocationmanager : cllocationmanager @end  // foobar.m @implementation mylocation @end  @implementation mylocationmanager @end 

now if build project ios fine when same os x, error @ linking:

undefined symbols architecture x86_64:   "_objc_metaclass_$_cllocation", referenced from:       _objc_metaclass_$_mylocation in appdelegate.o   "_objc_metaclass_$_cllocationmanager", referenced from:       _objc_metaclass_$_mylocationmanager in appdelegate.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) 

unlike in question error on cllocation subclassing, have proper frameworks added project and, said, setup builds flawlessly ios, not osx.

fwiw, i'm using xcode 4.6.3 ios sdk 6.1 , osx sdk 10.8, building x86_64 default llvm 4.2.

any clues why happening?

linker errors framework. forgetting import framework somewhere or add core location framework os x target. if works 1 not other, sounds 2 targets set differently.

double check. clean build. restart xcode.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -