Google AdMob Ads SDK 仅适用于模拟器

发布于 12-15 13:41 字数 905 浏览 3 评论 0原文

SDK版本5.0.4,设备具有IOS 4.3.2。当为模拟器构建时,一切都很好并且广告加载。当更改为“设备”时,链接应用程序本身时,我收到 9000 多个警告(!)“意外的重新定位类型 9”。在设备上运行时,应用程序会在首次调用 viewDidLoad、[[GADBannerView alloc] initWithFrame] 时崩溃 (EXC_BAD_ACCESS)。

我们遇到的问题是,最初我们使用 AdWhirl 来投放旧的 AdMob(原 Google Admob)广告。当使用正确的非测试 AdWhirl 帐户时,AdMob 广告(仅!)永远不会显示。

我尝试过一次性更新 AdWhirl 和 Google Admob,并仅使用新的 AdMob 删除 AdWhirl。对于后者,行为如上所述,当与 AdWhirl 一起使用时,它会在 AdWhirl 加载广告后几秒钟后崩溃。

当然其他人也遇到过这个问题,你是怎么解决的?

(更新:在另一台 iPhone 上安装它时,我奇怪地得到了比 EXC_BAD_ACCESS 更多的信息。它说:

Program received signal:  “EXC_BAD_ACCESS”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Can't find dlopen function, so it is not possible to load shared libraries.)
Cannot access memory at address 0x2fdfe8c0
Cannot access memory at address 0x2fdfe8c0

我的猜测是我必须使共享库静态(并且它可以在模拟器上工作,因为它有 dlopen())。我该怎么做? )

SDK version 5.0.4, device has IOS 4.3.2. When building for the simulator, all is fine and the ads load. When changing to 'device', I get 9000+ warnings(!) "unexpected srelocation type 9" when linking the app itself. When run on a device, the app crashes (EXC_BAD_ACCESS) at the first call in viewDidLoad, [[GADBannerView alloc] initWithFrame].

The problem we had was that originally, we used AdWhirl to serve the old AdMob (nee Google Admob) ads. When using the proper non-test AdWhirl account, AdMob ads (only!) would never show up.

I've tried updating AdWhirl and Google Admob in one go, and removing AdWhirl only using the new AdMob. With the latter the behavior is as described above, when used with AdWhirl it crashes a few seconds later when AdWhirl has loaded the ad.

Surely someone else got this, what did you do to solve it?

(Update: on installing it on another Iphone, I strangely got more info than EXC_BAD_ACCESS. It says:

Program received signal:  “EXC_BAD_ACCESS”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Can't find dlopen function, so it is not possible to load shared libraries.)
Cannot access memory at address 0x2fdfe8c0
Cannot access memory at address 0x2fdfe8c0

My guess then is that I must make a shared library static (and that it works on the Simulator, because it has dlopen()). How do I do that?
)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉城2024-12-22 13:41:58

我相信,对于 SDK 版本 5.0.4,只有当您使用最新版本的 XCode(我相信是 4.2)时,它才能工作。您使用的是最新版本的 XCode 吗?

I believe that that with SDK Version 5.0.4, it will only work if you are on the latest version of XCode which is I believe 4.2. Are you on the latest version of XCode?

落花随流水2024-12-22 13:41:58

问题出在 GoogleAdMob SDKlibGoogleAdMobAds.a 框架中。

对于您的 Xcode,请使用来自 adMob.com 的旧版 libGoogleAdMobAds.a,而不是新版本。

之后,所有 11345 警告均消失,应用程序在设备上正确运行。

问候,布巴爸爸

The problem is in the framework libGoogleAdMobAds.a from GoogleAdMob SDK.

Use previous version of libGoogleAdMobAds.a from adMob.com for your Xcode, not the new one.

After that all 11345 warnings gone and app runs correct on device.

Regards, Papa Buba

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文