chrisjp / CJPAdController

A singleton class providing a simple way to add iAd and AdMob ads to a view controller. Choose one as the default, fall back to the other.
http://chrisphillips.co.uk
MIT License
202 stars 58 forks source link

Can't install when using use_frameworks #28

Open jengo opened 9 years ago

jengo commented 9 years ago

If I try to install alongside a library that is written in Swift (Like SwiftyJSON) I get the following error:

Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing CJPAdController (1.7)
Using DateTools (1.6.1)
Installing Google-Mobile-Ads-SDK (7.4.1)
Using SwiftyJSON (2.2.1)
[!] The 'Pods' target has transitive dependencies that include static binaries: (/Users/jengo/Projects/tests/CJPAdControllertest/Pods/Google-Mobile-Ads-SDK/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework)

Installing Google-Mobile-Ads-SDK works fine, but fails when CJPAdController is also listed.

Example Podfile I am using

platform :ios, '8.0'

pod "SwiftyJSON", ">= 2.2"
pod 'CJPAdController'
pod 'DateTools'

use_frameworks!
link_with 'CJPAdControllertest'
chrisjp commented 9 years ago

Hi, sorry for taking over a month to respond, haven't had time to look into any issues lately. Did you ever find a workaround for this?

I haven't started using Swift yet but I ran into a similar error myself today when trying to push a very minor update to the pod so it forced me to look into it. After researching that as well as this one you're reporting, seems some are blaming Cocoapods while other are blaming Google, so I'm not entirely sure if this is something I can fix myself in CJPAdController.

Are you able to make any of the suggestions in this comment work for you?