Undefined symbols for architecture i386: "_GCControllerDidConnectNotification", referenced from:

来源:互联网 发布:香港大学mba 知乎 编辑:程序博客网 时间:2024/06/05 15:43


cocos2dx-js 3.3 模拟器运行报错:

Undefined symbols for architecture i386:

  "_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)

  "_OBJC_CLASS_$_GCController", referenced from:

      objc-class-ref in libcocos2d iOS.a(CCController-iOS.o)

     (maybe you meant: _OBJC_CLASS_$_GCControllerConnectionEventHandler)

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)


这时候添加GameController.framework即可。

0 0
原创粉丝点击