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

前端之家收集整理的这篇文章主要介绍了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′

并且更新工作正常.

原文链接:/iOS/333572.html

猜你在找的iOS相关文章