gpt4 book ai didi

ios - Cocoapods 正在安装旧的 Pod 版本

转载 作者:搜寻专家 更新时间:2023-10-31 22:05:06 26 4
gpt4 key购买 nike

我在我的应用程序中使用 RxSwift 和其他 Rx-pods,根据我的 Podfile.lock 我使用 RxSwift (3.2.0),但现在我想将 Pod 更新到最新版本。

所以我从我的 Podfile 中删除了我使用的 4 个 Rx..-pods,然后运行 ​​pod install,这从项目和 中删除了 pod >Podfile.lock。我重新添加 4 个 Rx..-pods 并再次运行 pod instal。这会安装 RxSwift 2.6.1... 为什么? - 我期待它安装最新稳定版本的 RxSwift,比如 3.6 .1..

我尝试删除以下列出的所有内容:gem list --local | grep cocoapods 并通过运行重新安装 cocoapods:gem install cocoapods

我也试过运行 pod repo update 但没有成功。

我也试过只运行 pod update,而不先卸载 Pod,结果也是一样。

我怀疑这是我的 cocoapods-gem 的问题,而不是 Rx-pods..

编辑添加Podfile:

source 'https://github.com/CocoaPods/Specs.git'
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!

target 'MyApp' do
pod 'BrightFutures'
pod 'Alamofire'
pod 'MBProgressHUD'
pod 'Fabric'
pod 'Crashlytics'
pod 'Analytics', '~> 3.0'
pod 'SwiftyJSON'
pod 'Eureka', '~> 2.0.0-beta.1'
pod 'RxCocoa'
pod 'RxSwift'
pod 'INTULocationManager'
pod 'ReachabilitySwift', '~> 3'
pod 'RxSwiftExt'
pod 'RxMKMapView'
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end

编辑 添加了pod outdateddump:

Analyzing dependencies
The following pod updates are available:
- Alamofire 4.3.0 -> 4.5.0 (latest version 4.5.0)
- Analytics 3.5.7 -> 3.6.4 (latest version 3.6.4)
- BrightFutures 5.1.0 -> 5.2.0 (latest version 6.0.0-beta.1)
- Crashlytics 3.8.3 -> 3.8.5 (latest version 3.8.5)
- Eureka 2.0.0-beta.1 -> 2.0.1 (latest version 3.1.0)
- Fabric 1.6.11 -> 1.6.12 (latest version 1.6.12)
- Result 3.1.0 -> 3.2.3 (latest version 3.2.3)
- RxCocoa 3.2.0 -> 3.6.1 (latest version 3.6.1)
- RxSwift 3.2.0 -> 3.6.1 (latest version 3.6.1)

最佳答案

您可以尝试以下方法:

清除 CocoaPods 的缓存:

  • rm -rf "${HOME}/Library/Caches/CocoaPods"
  • rm -rf "`pwd`/Pods/"(在您的项目目录中)
  • 最后 pod 更新

如果你使用的是 0.38.0.beta1,你可以只使用 pod cache clean


重新生成一切:

  • rm -rf ~/Library/Caches/CocoaPods
  • rm -rf Pod; rm -rf ~/Library/Developer/Xcode/DerivedData/*
  • pod 分解; pods 设置; pod 安装

设置版本

pod 'RxSwift', '~> 3.0' # last version is 3.6.1

关于ios - Cocoapods 正在安装旧的 Pod 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45306087/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com