Search code examples
iosobjective-ccocoapodsgoogle-analytics-sdk

Cocoapods 0.39.0 update error


After updating cocoapods to 0.39.0 from 0.38.2 each time I run pod install or pod update command, I receive error

[!] Unable to satisfy the following requirements:

- `GoogleAnalytics (= 3.13)` required by `Podfile`

Project info: XCode 7, iOS9 SDK, 8.0 Deployment target, bitecode is disabled in project settings.

Podfile:

platform :ios, '8.0'

pod 'AFNetworking', '2.6.0'
pod 'Typhoon'
pod 'SSKeychain'
pod 'JBWebViewController', :git => 'https://github.com/Ponf/JBWebViewController', :commit => '19d15604a694e7436fa4934a5bf221f05360eb8c'
pod 'TTTAttributedLabel'
pod 'HockeySDK', '3.6.4'
pod 'GoogleAnalytics', '3.13'
pod 'Intercom'
pod 'FBSDKCoreKit'
pod 'OpenSans'
pod 'UIButton+Activity'
pod 'HexColors'
pod 'AFNetworkActivityLogger'
pod 'HCSStarRatingView', :git => 'https://github.com/hugocampossousa/HCSStarRatingView.git'
pod 'LGSideMenuController', '~> 1.0.0'
pod 'DateTools'
pod 'SDWebImage'

If I remove dependency on 3.13 for Google Analytics - pod update fails on another pod.

After I have fallback to Cocoapods 0.38.2 - pod update starts working well.

How to make 0.39.0 working? Thanks!

Edit: It looks like there is some problem in Cocoapods Core: https://github.com/CocoaPods/CocoaPods/issues/4365


Solution

  • So, the problem is in 0.39.0 version of Cocoapods. In this build were some changes in pods version comparison, so if you have dependences on concrete version it may be broken.

    EDIT: Now the issue is tracked here: https://github.com/CocoaPods/CocoaPods/issues/4365

    There's a fix available but not in an official release yet. To try out the fix manually:

    1. Make clone of Cocoapods repository.
    2. In Gemfile replace

      cp_gem 'cocoapods_core' with

      gem 'cocoapods-core', :git => 'https://github.com/CocoaPods/Core.git', :branch => 'master'

    3. run bundle install.

    I hope it will help someone :)