2016-03-28 14 views
1

ich versucht, AdMob-Unterstützung über cocoapods mit folgendem podfile zu installieren:MoPub installieren AdMob über CocoaPods

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

..und erhielt den folgenden Fehler:

[!] 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) 

Jede Idee, warum passiert das ist? Ich betreibe El Capitan 10.11.4, CocoaPods 0.39.0 und XCode 7.3.

+0

ich das gleiche Problem bekommen, das geht weg, wenn ich die use_frameworks Kommentar! ausstrecken. Leider muss ich die use_frameworks haben! Da ich andere Pods verwende, die in swift geschrieben sind, suche ich selbst nach einer Lösung, aber wenn du nur diese 2 Pods hast, könntest du versuchen, das use_frameworks zu kommentieren! Linie – Teevus

+0

Danke @Teevus, ich werde das ausprobieren, wenn ich zurück nach Mopub gehe (versuche Admob im Moment). – kcmoffat

+0

Die Antwort des MoPub-Supports auf diese Frage wurde ebenfalls gepostet. – kcmoffat

Antwort

2

Dies ist die Antwort, die ich von MoPub Unterstützung erhalten (auf 2016.03.29):

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!

+0

Dies ist noch ein Jahr später gebrochen. Ziemlich unglaublich. – Stakenborg

+0

Noch gebrochen als vom 2. September 2017. – Julio

Verwandte Themen