ios – “pod update”不会更新到最新版本

这是我在项目中使用的podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios,'9.0'
use_frameworks!

pod 'AFNetworking','~> 2.0'
pod 'GoogleMaps'
pod 'MONActivityIndicatorView'
pod 'NYXImagesKit'
pod 'MagicalRecord'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'Countly'

问题是cocoapods 0.39正在将AFNetworking更新到版本2.5.4,这是错误的.最新版本是2.6.3另外facebook SDK更新到4.4(最新版本为4.8)等.

我试图删除Pods文件夹和.lock文件,但没有帮助

还试图清理cocoapods缓存但没有帮助:

MACMINI:myproject myusername$pod cache clean --all
MACMINI:myproject myusername$pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.5.4)
Installing Bolts (1.2.0)
Installing Countly (15.06.01)
Installing FBSDKCoreKit (4.4.0)
Installing FBSDKLoginKit (4.4.0)
Installing FBSDKShareKit (4.4.0)
Installing GoogleMaps (1.10.1)
Installing MONActivityIndicatorView (0.0.3)
Installing MagicalRecord (2.3.0)
Installing NYXImagesKit (2.3)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `myproject.xcworkspace` for this project from Now on.
Sending stats
Sending stats
Pod installation complete! There are 9 dependencies from the Podfile and 10 total pods installed.

解决方法

就我而言,霓虹灯不会为我更新.事实证明这是因为部署目标.


平台:ios,’8.0′

平台:ios,’10 .0′

并且更新工作正常.

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...