Hello everyone, I am trying to integrate facebook into a new project in iOS with version 3.3 of cocos2d-x cpp. I followed step by step all the steps of this guide http://cocos2d-x.org/wiki/Facebook_integration_instruction_for_Cocos2d-x_and_Cocos2d-x-Lua_on_iOS.
When I compile the project with xCode resources are compiled, but when I get linking errors:
Undefined symbols for architecture x86_64:
“_GCControllerDidConnectNotification”, referenced from:
-[GCControllerConnectionEventHandler observerConnection:disconnection:] in libcocos2d iOS.a(CCController-iOS.o)
“_GCControllerDidDisconnectNotification”, referenced from:
-[GCControllerConnectionEventHandler observerConnection:disconnection:] in libcocos2d iOS.a(CCController-iOS.o)
“_MPMoviePlayerPlaybackDidFinishNotification”, referenced from:
-[UIVideoViewWrapperIos dealloc] in libcocos2d iOS.a(UIVideoPlayer-ios.o)
-[UIVideoViewWrapperIos setURL::] in libcocos2d iOS.a(UIVideoPlayer-ios.o)
“_MPMoviePlayerPlaybackStateDidChangeNotification”, referenced from:
-[UIVideoViewWrapperIos dealloc] in libcocos2d iOS.a(UIVideoPlayer-ios.o)
-[UIVideoViewWrapperIos setURL::] in libcocos2d iOS.a(UIVideoPlayer-ios.o)
“OBJC_CLASS$_GCController”, referenced from:
objc-class-ref in libcocos2d iOS.a(CCController-iOS.o)
(maybe you meant: OBJC_CLASS$_GCControllerConnectionEventHandler)
“OBJC_CLASS$_MPMoviePlayerController”, referenced from:
objc-class-ref in libcocos2d iOS.a(UIVideoPlayer-ios.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I fix it? thanks to all