如何使 iAd 集成 iPhone 应用程序在以前版本的 iPhone 操作系统上运行?

发布于 2024-09-07 03:48:03 字数 473 浏览 4 评论 0原文

正如标题所述,我将 iAd 集成到了我的 iPhone 应用程序中。在 iPhone 模拟器 (iOS4) 中一切正常。但是,当我尝试在 iPhone(版本 3.1.3)上安装它时,出现错误:

  dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd
  Referenced from: /var/mobile/Applications/...
  Reason: image not found

我已经将部署目标正确设置为 v3.0,并将基础 SDK 设置为 4.0。当我注释掉所有 iAd 相关代码时,应用程序安装没有问题。

一定有办法做到这一点,因为我下载了使用 iAd 的应用程序“showtimes”和“Yellow Pages”。这两个应用程序在我的 3.1.3 手机上运行得很好,而且我也可以看到 iAd。

有人知道该怎么做吗?

As title described, I integrated iAd into my iPhone apps. Everything worked fine in the iPhone simulator (iOS4). However, when I try to install it on my iPhone(version 3.1.3), I got an error:

  dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd
  Referenced from: /var/mobile/Applications/...
  Reason: image not found

I already properly set the deployment target to v3.0, and base SDK to 4.0. When I comment out all the iAd related code, the apps installs with no problem.

There must be a way to do this, because I downloaded the apps "showtimes" and "Yellow Pages", which use iAd. Both apps run very well on my 3.1.3 phone, and I can see the iAd as well.

Does anybody know how to do this?

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

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

发布评论

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

评论(3

无人接听 2024-09-14 03:48:03

要解决加载器错误,请在 Xcode 中双击目标并将 iAds.framework 的链接类型更改为“Weak”而不是“Required”。您可能还需要进行一些条件编码才能支持其他广告网络,因为 4.0 之前的系统不支持 iAd。

To get past the loader error, double-click your target in Xcode and change the link type of the iAds.framework to "Weak" instead of "Required". You'll probably have to do some conditional coding to support other ad networks as well, because iAds are not supported on pre-4.0 systems.

掩饰不了的爱 2024-09-14 03:48:03

在 xCode 4 中,选择“目标”-“构建阶段”-“将二进制文件与库链接”。将 iAd.framework 的链接类型更改为“可选”而不是“必需”。

In xCode 4 select "Targets"-"Build Phases"- "Link Binary With Libraries". Change the link type of the iAd.framework to "Optional" instead of "Required".

紧拥背影 2024-09-14 03:48:03

您可以将 AdWhirl 集成到您的应用中,它可以为您提供 iAd 等。更有用的是,它将为您提供可以在 iOS3.* 中显示的广告。

You can integrate AdWhirl into your app instead, which can deliver you iAds among others. More usefully, it will provide you with adverts you can display in iOS3.*.

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