target has transitive dependencies that include static binaries

2,405 views
Skip to first unread message

pascal....@yieldlove.com

unread,
Jan 8, 2018, 10:42:30 AM1/8/18
to Google Mobile Ads SDK Developers
Hello, 

I'm getting the following error:
 
ERROR | [iOS] unknown: Encountered an unknown error (The 'Pods-App' target has transitive dependencies that include static binaries: (/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework)) during validation.

 I'm trying to create a podspec that depends on the Google-Mobile-Ads-SDK.

I have 2 source files that both are swift files.

spec.source_files       = ['lib/*.swift']
spec.dependency 'Google-Mobile-Ads-SDK'

 Using vendored_frameworks works with using the GoogleMobileAds.framework but then I can't add dependencies that depend themselves on Google-Mobile-Ads-SDK. I'm getting the following error:

ERROR | [iOS] unknown: Encountered an unknown error (The 'Pods-App' target has frameworks with conflicting names: googlemobileads.framework.) during validation. 


Can someone help me? 

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Jan 8, 2018, 3:15:28 PM1/8/18
to Google Mobile Ads SDK Developers
Hello Pascal, 

Thank you for contacting us. Can you try running the pod repo update on the Terminal, or install the SDK via CocoaPods using pod install --repo-update? You may also refer to the related thread on the Github issue tracker and see if that works for you. Let me know how it goes.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

Pascal Salesch

unread,
Jan 9, 2018, 2:51:27 AM1/9/18
to Bharani Cherukuri (Mobile Ads SDK Team), Google Mobile Ads SDK Developers
Yes!

Using static_framework made it work!!!

Thank you for pointing me to the correct issue!

Here's what I'm using now:

spec.static_framework   = true

spec.source_files       = [
'lib/*.swift'
]
spec.dependency 'Google-Mobile-Ads-SDK'
 
Thank you very much!


--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/ebsWiyqscgs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/123a084c-2263-4890-ae68-f922fab41260%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
_______________________________
Pascal Salesch, Software Developer

Yieldlove GmbH
Neuer Pferdemarkt 1, 20359 Hamburg  
Reply all
Reply to author
Forward
0 new messages