ios - Cocoapods is installing old Pod version -
i'm using rxswift
, other rx-pods in app, according podfile.lock
use rxswift (3.2.0)
, want update pods latest versions.
so remove 4 rx..-pods use podfile
, , run pod install
, removed pods project , podfile.lock
. re-add 4 rx..-pods , run pod instal
again. installs rxswift 2.6.1
... why? - i'm expecting install newest stable version of rxswift
, 3.6.1..
i tried removing listed by: gem list --local | grep cocoapods
, reinstalling cocoapods running: gem install cocoapods
i tried running pod repo update
without success.
i tried running pod update
, without uninstalling pods first, same outcome.
i suspect issue cocoapods
-gem, not rx-pods..
edit added podfile
:
source 'https://github.com/cocoapods/specs.git' # uncomment line define global platform project platform :ios, '9.0' # uncomment line if you're using swift use_frameworks! target 'myapp' 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 |installer| installer.pods_project.targets.each |target| target.build_configurations.each |config| config.build_settings['swift_version'] = '3.0' end end end
edit added pod outdated
dump:
analyzing dependencies following pod updates 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)
you try following:
clearing cocoapods' cache:
- rm -rf "${home}/library/caches/cocoapods"
- rm -rf "`pwd`/pods/" (while in project's dir)
- finally
pod update
if using 0.38.0.beta1, can use pod cache clean
regenerate everything:
- rm -rf ~/library/caches/cocoapods
- rm -rf pods; rm -rf ~/library/developer/xcode/deriveddata/*
- pod deintegrate; pod setup; pod install
set version
pod 'rxswift', '~> 3.0' # last version 3.6.1
Comments
Post a Comment