MoPub install AdMob via CocoaPods

▼魔方 西西 提交于 2019-12-11 13:55:22

问题


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)

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


回答1:


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

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. Download the desired third party SDK and add the header files and static libraries to your project. (For iAd you simply need to link against the iAd framework, there is nothing to download).
  2. Add the desired custom event to your project. You do this by cloning the mopub-ios-sdkrepo and dragging the custom event .h and .m files from the relevant SDK folder underAdNetworkSupport.

We are so sorry for the inconvenience!



来源:https://stackoverflow.com/questions/36273100/mopub-install-admob-via-cocoapods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!