XCode 中缺少 iAd 框架
我三天前下载了最新的 XCode。
我正在尝试将 iAd 框架添加到我当前的项目中。
我转到目标,然后“与库链接”,单击“+”并获得框架列表。
但在该列表中找不到任何 iad 框架?
请参阅此处的屏幕截图:
https://i.sstatic.net/4Kn8F.png
知道为什么吗?
非常感谢!
I downloaded the latest XCode 3 days ago.
I am trying to add the iAd Framework to my current project.
I go to target, then "link with libraries", click on "+" and have a list of frameworks.
But can't find any iad framework in that list?
See screenshot here:
https://i.sstatic.net/4Kn8F.png
Any idea why?
Thank you a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些看起来都不像 iOS 库。确保项目的其他设置指向 iOS,而不是 Mac OS。您似乎还缺少许多其他 iOS 框架,例如 GameKit。如果需要,请点击“添加其他”并浏览
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/Frameworks/iAd.framework
。None of those look like they are iOS libraries. Make sure your project's other settings point to iOS, not Mac OS. You also seem to be missing lots of the other iOS frameworks, such as GameKit. If you have to, click "Add Other" and browse for
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/System/Library/Frameworks/iAd.framework
.也许你只能通过在构建设置中添加来引用它 -> 其他链接器标志值-weak_framework,并在该入口之后添加另一行iAD,
这只是为了对 iAd 框架进行弱引用。
Maybe you can reference it only by adding in the Build Setting -> Other Linker Flags the value -weak_framework and after that entrance add in another row iAD
This just to make a weak reference to the iAd Framework.