【发布时间】:2016-02-26 21:24:35
【问题描述】:
这是我在项目中使用的 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.
【问题讨论】:
-
您的可可豆荚是最新的吗?
-
是的。如上所述,我将 cocoapods 更新到 0.39.0 版
-
也许尝试从 AFNetworking 行中删除 , '~> 2.0'?并删除强制使用框架?
-
确保
podspec版本信息正确,并且该版本指向正确的标签
标签: ios cocoapods afnetworking-2