Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CMMotionManager", referenced from: objc-class-ref in GooglePlus(GPPSpamSignal.o)

Hello I have a project that some one has developed. It has G+, FB integration. When I get the project and try to run it, it gives me this error. How I can solve this? Please help me.

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CMMotionManager", referenced from:
  objc-class-ref in GooglePlus(GPPSpamSignal.o)
 ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks

like image 234
user1960169 Avatar asked Aug 13 '15 08:08

user1960169


2 Answers

Undefined symbols means usually that you are missing an import statement. Looks like you are using CMMotionManager is part of CoreMotion, so you might need to :

#import <CoreMotion/CoreMotion.h>

And verify that you have added CoreMotion to your project

like image 88
shannoga Avatar answered Nov 10 '22 06:11

shannoga


As CMMotionManager is part of CoreMotion framework, simply include the framework in your build in Xcode in "target"'s Build Phases: "link with": add "+" "CoreMotion.framework"

like image 25
james_t Avatar answered Nov 10 '22 08:11

james_t