找不到“iAd” XCode 4 中的框架
我想添加 iAd 框架。但找不到。我正在遵循步骤;
在项目导航器中,选择您的项目 选择您的目标 选择“构建阶段”选项卡 打开“链接二进制文件与库”扩展器 单击“+”按钮
但看不到 iAd 框架。
作为提示,我看到“当前 MAC 操作系统”作为框架列表的标题...
我有最新的 Xcode 4 和 iOS 4 SDK...
I want to add the iAd framework. But cannot find. I am folowing the stpes;
In the project navigator, select your project
Select your target
Select the 'Build Phases' tab
Open 'Link Binaries With Libraries' expander
Click the '+' button
But cannot see the iAd framework..
Just as a hint, I see "Current MAC OS" as the title for the Frameworks list...
I have the latest Xcode 4 and iOS 4 SDK...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您的基础 SDK 是否设置为 Mac OS 而不是 iOS?

Is your base SDK set to Mac OS instead of iOS?

看来您无意中选择了 Cocoa 项目。您需要创建一个 Cocoa Touch 项目。
Apple iAd 框架参考
It seems that you chosen a Cocoa project by accident. You need to create a Cocoa Touch project.
Apple iAd Framework Reference
乔的回答是正确的。我最近恢复了 Xcode 3 项目的开发,在升级到 XCode 4 并处理该项目后,我在尝试构建项目和部署时收到“iAd/iAd.h 未找到”错误具体到我的测试设备。我去了Base SDK,发现它正在选择一些随机的SDK。我将其更新为“最新”,它开始在所有测试场景中工作。
Joe's answer was correct. I recently resumed development on an Xcode 3 project and after upgrading to XCode 4 and working on that project I was receiving the "iAd/iAd.h was not found" error when trying to build the project and deploy to my test device specifically. I went to the Base SDK and found it was selecting some random SDK. I updated it to "Latest" and it began to work in all test scenarios.
这令人恼火,因为 iAd 框架根本就没有达到它应有的位置(即与其他框架一起)。我已经选择了最新的 Base SDK。因此,如果 JoePasq 的答案不起作用,您应该尝试执行我所做的操作,然后卸载,然后重新安装 Xcode。它将重新安装所有框架。
判断是否需要执行此操作的一种方法是,Apple 的 iAd 套件教程是否也缺少 iAd 框架。
This was infuriating because the iAd Framework simply wasn't where it was supposed to be (i.e. with the other frameworks). I already had the latest Base SDK selected. So, if JoePasq's answer didn't work, you should try doing what I did, and uninstall, then reinstall Xcode. It will reinstall with all the frameworks.
One way you can tell if you need to do this is if Apple's iAd suite tutorials are also missing the iAd framework.