gpt4 book ai didi

ios - Cocos2d-x AdMob iOS 集成错误

转载 作者:行者123 更新时间:2023-11-29 00:53:54 24 4
gpt4 key购买 nike

章节

终于回到我使用 Cocos2d-x (3.8) 并尝试在 iOS/xCode 中显示横幅广告的第一个游戏。为此苦苦挣扎了几天,阅读了一半的互联网。如果可以找到修复程序,我们深表歉意。

我做了什么......

在我的项目中添加了以下框架:

iAd,,AdSupport, AudioToolbox, AVFoundation, CoreData, CoreGraphics, CoreTelephony, GameController, EventKit, EventKitUI, MediaPlayer, MessageUI, StoreKit, SystemConfiguration

build设置 -> 构建选项 -> 启用位码 => 否

build设置 -> 链接 -> 其他链接器标志,添加 -ObjC

下载了GoogleMobileAds.framework,解压后找到GoogleMobileAds.framework。

将其从 Finder 拖到 [Project] -> Frameworks 文件夹中。选择“如果需要,复制项目”。还添加了带有标题的中介适配器文件夹。

下载iAdAdapter库,解压下载后找到libAdapterIAd.a库。

将其从 Finder 拖到 [Project] -> Frameworks 文件夹中。选择“如果需要,复制项目”。

enter image description here

将 GoogleMobileAds.framework 和 libAdapterIAd.a 添加到我的构建阶段 -> 将二进制文件与库链接。

enter image description here

我看到的错误:

enter image description here

如有任何修复,我们将不胜感激。

最佳答案

您需要添加CoreBluetooth框架。

关于ios - Cocos2d-x AdMob iOS 集成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37811266/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com