MoPub通过CocoaPods安装AdMob [英] MoPub install AdMob via CocoaPods

查看:346
本文介绍了MoPub通过CocoaPods安装AdMob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过带有以下Podfile的cocoapods安装AdMob支持:

I attempted to install AdMob support via cocoapods with the following podfile:

use_frameworks!
pod 'mopub-ios-sdk'
pod 'mopub-ios-sdk/AdMob'

..并收到以下错误:

..and received the following error:

[!] The 'Pods' target has transitive dependencies that include static binaries: (/Users/<username>/Documents/Developer/<app>/Pods/Google-Mobile-Ads-SDK/GoogleMobileAdsSdkiOS-7.1.0/GoogleMobileAds.framework)

有人知道为什么会这样吗?我正在运行El Capitan 10.11.4,CocoaPods 0.39.0和XCode 7.3。

Any idea why that's happening? I'm running El Capitan 10.11.4, CocoaPods 0.39.0, and XCode 7.3.

推荐答案

这是我收到的答案来自MoPub支持(2016年3月29日):

This is the answer I received from MoPub support (on 3/29/2016):


感谢您与我们联系!不幸的是,AdMob可可豆荚
集成目前无法使用。我们的团队已经意识到了这个问题,并且
正在对此进行调查,但是对于
什么时候可以解决,我们没有预计的时间。我建议按照以下
步骤集成AdMob:

Thanks for reaching out! Unfortunately, the AdMob cocoa pod integration is currently broken. Our team is aware of the problem and is investigating it, but we do not have an ETA for when it will be resolved. I would recommend integrating AdMob by following these steps:


  1. 下载所需的第三方SDK并添加头文件和
    静态库到您的项目。 (对于iAd,您只需要将
    与iAd框架链接,就无需下载任何内容)。

  2. 将所需的自定义事件添加到项目中。为此,您可以克隆
    mopub-ios-sdkrepo并将自定义事件.h和.m文件从
    拖动到AdNetworkSupport下的相关SDK文件夹中。

给您带来的不便,我们深感抱歉!

We are so sorry for the inconvenience!

这篇关于MoPub通过CocoaPods安装AdMob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆