cocos ios,other linker flags 加入 -objc 编译报错解决方案
发布时间:2020-12-14 16:59:34 所属栏目:百科 来源:网络整理
导读:在嵌入 supersonic 的广告sdk时 遇到了同样的问题. supersonic也要求加入 -ObjC Undefined symbols for architecture armv7s: "_GCControllerDidDisconnectNotification" ,referenced from : -[GCControllerConnectionEventHandler observerConnection:disco
在嵌入 supersonic 的广告sdk时 遇到了同样的问题. Undefined symbols for architecture armv7s:
"_GCControllerDidDisconnectNotification",referenced from:
-[GCControllerConnectionEventHandler observerConnection:disconnection:] in libcocos2dx iOS.a(CCController-iOS.o)
"_GCControllerDidConnectNotification",referenced from:
-[GCControllerConnectionEventHandler observerConnection:disconnection:] in libcocos2dx iOS.a(CCController-iOS.o)
"_OBJC_CLASS_$_GCController",referenced from:
objc-class-ref in libcocos2dx iOS.a(CCController-iOS.o)
(maybe you meant: _OBJC_CLASS_$_GCControllerConnectionEventHandler)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:增加两个库: 原因参见:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- postgresql – PgSQL – 如何在数据库完全空的情况下导入数
- iPhone模拟器启动时自动打开Safari Debugger
- openshift 使用curl命令访问apiserver
- xcode – 错误:由于未捕获的异常’NSUnknownKeyException’
- 【Java编程】SAX XML Parser解析、生成XML文件
- ruby-on-rails – ActiveAdmin – 如何从partials访问实例变
- flex+struts2上传文件
- ArcGIS.Server.9.3和ArcGIS API for Flex实现基本的地图浏览
- ruby-on-rails – Selenium和Uploadify
- c – 字节的大小可以大于八位字节8位