Cocos2dx编译问题请教

使用版本:3.0,3.1,3.2

运行环境:Mac OS 10.9.3

开发环境:Xcode 5.1

出现问题:Other Linker Flags中增加-ObjC选项会出现如下编译错误。

(null): “_GCControllerDidDisconnectNotification”, referenced from:

(null): - in libcocos2dx iOS.a(CCController-iOS.o)

(null): “_GCControllerDidConnectNotification”, referenced from:

(null): - in libcocos2dx iOS.a(CCController-iOS.o)

(null): “OBJC_CLASS$_GCController”, referenced from:

(null): Objc-class-ref in libcocos2dx iOS.a(CCController-iOS.o)

(null): (maybe you meant: OBJC_CLASS$_GCControllerConnectionEventHandler)

(null): Symbol(s) not found for architecture armv7

(null): Linker command failed with exit code 1 (use -v to see invocation)

出现Symbol(s) not found for architecture armv7的错误警告,表示某些类没有被编译到动态库中;可能是对应文件不存在或没找到,或者是没有被加入到XCode工程中,先检查一下你的CCController-iOS.mm文件有没有问题