2015-10-14 76 views
2

从0.38.2每个I运行pod installpod update命令时更新的CocoaPods到0.39.0后,收到错误的CocoaPods 0.39.0更新错误

[!] Unable to satisfy the following requirements: 

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

项目信息:7的XCode,iOS9 SDK,8.0部署目标,在项目设置中禁用了bitecode。

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' 

如果我卸下3.13依赖于谷歌Analytics(分析) - 荚更新上的另一盒失败。

后,我必须退回到的CocoaPods 0.38.2 - pod update开始运作良好。

如何使0.39.0工作? 谢谢!

编辑: 看起来存在的CocoaPods核心问题的一些:https://github.com/CocoaPods/CocoaPods/issues/4365

+0

看到这个链接可能会帮助你http://stackoverflow.com/questions/27633798/pod-install-failed-with-error-library-from-required-by-podfile-when –

+0

@ Anbu.Karthik谢谢,删除Podfile.lock,/ Pods文件夹和* .workspace文件后,我尝试了干净安装,但仍然存在相同的问题。 – Ponf

+0

检查一次您的'GoogleAnalytics','3.13'支持平台:ios,'8.0'或平台:ios,'9.0' –

回答

1

那么,问题出在0.39.0版本的CocoaPods的。在这个版本中,pod版本比较有些变化,所以如果你对具体版本有依赖性,它可能会被破坏。

编辑:现在的问题是在这里追踪:https://github.com/CocoaPods/CocoaPods/issues/4365

有一个在正式发布可用的,但不是修复呢。要手动尝试修复:

  1. 制作Cocoapods存储库的克隆。
  2. 在Gemfile中更换

    cp_gem 'cocoapods_core'

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

  3. 运行bundle install

我希望这会帮助别人:)

1

我认为你需要更新最新版本的谷歌分析的,你只是删除了版本号,安装吊舱。

在Xcode中7,可能需要最新版本。

要了解以下更多的澄清

你只要按照下面的终端命令。当你要更新你的豆荚时,你只需关注下面的终端命令。这些命令足以更新你的豆荚。希望它可以帮助你。

打开终端:

$sudo gem update —system 
$sudo gem uninstall cocoapods 
$sudo gem install cocoapods 
$pod setup 
$cd <project path> 
$pod init 
$ open -a Xcode Podfile 

添加文件(框架名)到你的POD文件。 例子:

platform :ios, '7.0' 

pod 'FBSDKLoginKit' 
pod 'FBSDKCoreKit' 
pod 'FBSDKShareKit' 
pod 'FBAudienceNetwork' 
pod 'FBSDKMessengerShareKit' 
Save your pod file. then, 

$pod install 
$pod update(if you need) 

的框架将下载最新版本的,如果我们不提的版本名称。 例如:

荚 'AFNetworking'

Open your project folder --> Open the project workspace not the xcode project. 

Clean the Project. 

Run the Project. 

希望它能对您有用!