I have Podfile that contains this lines
platform :ios, '5.0'
pod 'AdMob', '~> 6.5.0'
pod 'FlurrySDK', '~> 4.2.3'
pod 'RevMobSDK'
when I try to run pod install i get this error below:
Unable to find a specification for AdMob (= 6.5.0).
AdMob is now in a different spec, maintained by Google:
-> Google-Mobile-Ads-SDK (6.6.1)
Monetize your mobile applications with Google ads
pod 'Google-Mobile-Ads-SDK', '~> 6.6.1'
- Homepage: https://developers.google.com/mobile-ads-sdk/
- Source: http://dl.google.com/googleadmobadssdk/googlemobileadssdkios-6.6.1.zip
- Versions: 6.6.1, 6.6.0 [master repo]
Related
I'm trying to compile and build the ARCore example provided here :
https://github.com/google-ar/arcore-ios-sdk
My Podfile looks as follows
`=> cat Podfile
target 'MyTarget'
platform :ios, '11.0'
pod 'ARCore', '~> 1.2.1'
pod 'Firebase/Core', '~> 4.11'
pod 'Firebase/Database', '~> 4.11'`
When I run pod install, I get the folllowing error :
==> pod install
Analyzing dependencies
[!] Unable to find a specification forARCore (~> 1.2.1)``
Run pod update or pod install --repo-update.
Your podspec repo is probably does not include 1.2.1 yet.
if you use pod "Google/SignIn", it install GoogleSignIn 3.0.0
if you use pod "GoogleSignIn", it install the last version 4.0.2
However if you run the app with pod "GoogleSignIn", then the app crash with the message:
You have enabled the SignIn service in Developer Console, but it appears as though your Podfile is missing the line: 'pod "Google/SignIn" or you may need to run `pod update` in your project directory.
So GoogleSignIn 3.0.0 is atm the last version to use?
I could make it work with:
pod 'Google/SignIn'
pod 'GoogleSignIn', '~> 4.0'
pod 'Google', '~> 3.0'
The pod 'Google/SignIn' is just to pass the check, since it is an older version then GoogleSignIn then it will be ignored by pod.
You'll need pod 'Google', '~> 3.0' also.
With this you can use Google Sign 4.0+ with no errors.
Firstly ,Sorry#Marckaroujo I am not able to add comment so m asking qstn on ur post.
I have added following after reading your post
pod 'Google/SignIn'
pod 'GoogleSignIn', '~> 4.0'
pod 'Google', '~> 3.0'
But now m getting the warning after I press pod install.
[!] Google has been deprecated
Would the warning above creates some error later in my app when it will be live to public m concerned .
I'm using CocoaPods version 0.39.0 and I have 'TwitterKit' pod version 1.12.0 installed.
My Podfile doesn't specify any version for this pod...
pod 'ReactiveCocoa', '~> 2.5'
pod 'Fabric'
pod 'TwitterKit'
pod 'TwitterCore'
pod 'Mantle', '~> 2.0'
pod 'MTLManagedObjectAdapter', '~> 1.0.0.1'
pod 'NPReachability', '~> 0.2.0'
Now I want to update it to version 1.13.1 so I run pod update 'TwitterKit'. But it still says Using TwitterKit (1.12.0).
pod search TwitterKit tells me version 1.13.1 is available.
-> TwitterKit (1.13.1)
Increase user engagement and app growth.
pod 'TwitterKit', '~> 1.13.1'
- Homepage: https://fabric.io/kits/ios/twitterkit
- Source:
https://kit-downloads.fabric.io/ios/com.twitter.sdk.ios/1.13.1/com.twitter.sdk.ios-default.zip
- Versions: 1.13.1, 1.13.0, 1.12.1, 1.12.0, 1.11.4, 1.11.3, 1.11.2, 1.11.1,
1.11.0, 1.10.1, 1.10.0, 1.9.0, 1.8.1 [master repo]
Did I do something wrong???
It turns out it is a dependency issue. I have to do pod update 'TwitterCore' first, then do pod update 'TwitterKit' in order to update TwitterKit's version.
For the curious ones, here is the TwitterKit.podspec.json :)
updating one by one starting from TwitterCore didn't work for me. Solution was: comment Twitter pods in Podfile -> run pod install to remove those pods -> uncomment Twitter pods and run pod install again
I'm developing an swift iOS app and at this "final" stage I'll add Google Analytics.
I'm following their Guide
But it failed at pod install command...
Error Log
Downloading dependencies
Using Alamofire (1.2.2)
Using Bolts (1.2.0)
Using CryptoSwift (0.0.10)
Using FBSDKCoreKit (4.2.0)
Using FBSDKLoginKit (4.2.0)
Using FBSDKShareKit (4.2.0)
Installing Google (1.0.7)
Installing GoogleAnalytics (3.13.0)
Using GoogleMaps (1.10.1)
Installing GoogleNetworkingUtilities (1.0.0)
Installing GoogleSymbolUtilities (1.0.0)
Installing GoogleUtilities (1.0.1)
Using ImageLoader (0.3.2)
Using SQLite.swift (0.1.0.pre)
Using SwiftyJSON (2.2.0)
[!] The 'Pods-<My-Project>' target has transitive dependencies that include static binaries: (<path-to-project-dir>/Pods/Google/Libraries/libGGLAnalytics.a, <path-to-project-dir>/iOS/Pods/Google/Libraries/libGGLCore.a, <path-to-project-dir>/iOS/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a, (...)
As stated in this tutorial, "pods written in Swift must be created as dynamic frameworks" (and that's why the use_frameworks! in the Podfile).
As it seems, this new Google Analytics pod is a static binary.
I tried to change the pod the same as this answer but the pod install command warned me that (obviously) [!] GoogleAnalytics-iOS-SDK has been deprecated in favor of GoogleAnalytics. And I'm not sure it's a good idea to add an already deprecated library to a new project instead of getting the right one to work.
My project has a target dependecy to iOS 8.0+ and the podfile is:
```
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'MyProject' do
pod 'Alamofire', '~> 1.2'
pod 'SwiftyJSON', '~> 2.2.0'
pod 'GoogleMaps'
pod 'ImageLoader', '~> 0.3.0'
pod 'SQLite.swift', git: 'https://github.com/stephencelis/SQLite.swift.git'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'CryptoSwift'
pod 'GoogleAnalytics', '~> 3.13'
end
target 'MyProjectTests' do
end
```
Is anyone having the same problem or know how to solve this using the v3 GA pod?
Replace the line
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
in your Podfile with
pod 'GoogleAnalytics', '~> 3.13'
Clean project and run pod install again. The pod you're currently using is the one that is deprecated.
When I run pod update, MMDrawerController is being downgraded from the currently installed version (0.5.7) to an older one (0.4.0).
Here is the contents of my Podfile:
source 'https://github.com/CocoaPods/Specs.git'
link_with 'OpenEye-Mobile', 'SecurityStar Tests'
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.5.0'
pod 'MBProgressHUD', '~> 0.9'
pod 'MMDrawerController'
pod 'MMDrawerController+Storyboard', '~> 0.0.1'
pod 'UIAlertView+Blocks', '~> 0.8.1'
target :"SecurityStar Tests" do
pod 'OCMock', '~> 3.1.1'
end
I just updated the cocoapods gem from v. 0.34.4 to 0.35.0. The only change I have made to the Podfile is updating AFNetworking from 2.3.1 to 2.5.0. If I try to explicitly specify MMDrawerController as v. 0.5.7, I get a dependency error:
- `MMDrawerController (= 0.5.7)` required by `Podfile`
- `MMDrawerController (~> 0.4.0)` required by `MMDrawerController+Storyboard (0.0.1)`
What's going on here? Why is this a problem all of a sudden? Did something change in cocoapods 0.35? Is there a way I can force MMDrawerController+Storyboard to be OK with MMDrawerController (= 0.5.7)?
SOLUTION 1 is specify same range as in MMDrawerController+Storyboard
pod 'MMDrawerController', '~> 0.4.0'
SOLUTION 2 is to update MMDrawerController+Storyboard podspec so that it will use the latest version.
EXPLANATION
The problem is as it says: dependency error.
This line in a podfile means take the latest (for 04.02 is 0.5.7):
pod 'MMDrawerController'
While this one demands 'MMDrawerController+Storyboard' :
pod 'MMDrawerController+Storyboard', '~> 0.0.1'
which, in turn, specifies in it's podspec as a dependency:
s.dependency 'MMDrawerController', '~> 0.4.0'
'~> 0.4.0' means that it can use versions 0.4.0 - 0.4.9 and there is no intersection of 0.5.7 with 0.4.0 - 0.4.9.