cocos ios,other linker flags 加入 -objc 编译报错解决方案
2016-04-01 13:01
489 查看
在嵌入 supersonic 的广告sdk时 遇到了同样的问题.
supersonic也要求加入 -ObjC
我用的是iphone5c,昨天使用admob的广告,这个sdk要求要将Other Linker Flags 设置成 -ObjC。不知如何解决以上报错。
MediaPlayer.framework
GameController.framework
原因参见:
http://stackoverflow.com/questions/24844766/linking-errors-when-adding-admob-to-ios-cocos2d-x-3-2
http://blog.csdn.net/yinxin2745154/article/details/48497403
supersonic也要求加入 -ObjC
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)
我用的是iphone5c,昨天使用admob的广告,这个sdk要求要将Other Linker Flags 设置成 -ObjC。不知如何解决以上报错。
解决方法:
增加两个库:MediaPlayer.framework
GameController.framework
原因参见:
http://stackoverflow.com/questions/24844766/linking-errors-when-adding-admob-to-ios-cocos2d-x-3-2
http://blog.csdn.net/yinxin2745154/article/details/48497403
相关文章推荐
- 峰回路转,Firefox 浏览器即将重返 iOS 平台
- 峰回路转,Firefox 浏览器即将重返 iOS 平台
- 不可修补的 iOS 漏洞可能导致 iPhone 4s 到 iPhone X 永久越狱
- iOS 12.4 系统遭黑客破解,漏洞危及数百万用户
- Android ADT 23.0.0无法更新到23.0.2问题解决方案
- 每日安全资讯:NSO,一家专业入侵 iPhone 的神秘公司
- [转][源代码]Comex公布JailbreakMe 3.0源代码
- SDKMAN:轻松管理多个软件开发套件 (SDK) 的命令行工具
- Parse正式发布开源PHP SDK
- 基于Android SDK-在64位Linux中使用需要注意的问题
- 讲解iOS开发中基本的定位功能实现
- iOS中定位当前位置坐标及转换为火星坐标的方法
- js判断客户端是iOS还是Android等移动终端的方法
- iOS应用中UISearchDisplayController搜索效果的用法
- IOS开发环境windows化攻略
- iOS应用中UITableView左滑自定义选项及批量删除的实现
- 浅析iOS应用开发中线程间的通信与线程安全问题
- 检测iOS设备是否越狱的方法
- Android编程之SDK安装组件的离线安装方法分享