所以我尝试将Parse iOS SDK与Facebook SDK一起安装,由于Bolts依赖项的不匹配版本,我收到错误。我有以下cocoapods env
CocoaPods : 1.4.0
Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
RubyGems : 2.5.2
Host : Mac OS X 10.13.3 (17D102)
Xcode : 9.2 (9C40b)
Git : git version 2.14.3 (Apple Git-98)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 0ceca6006fa5a6d42842e7d67324c9fdec36331e
Executable Path: /usr/local/Cellar/cocoapods/1.4.0/libexec/bin/pod
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
source 'https://github.com/CocoaPods/Specs.git'
workspace 'MyProject'
project 'MyProject.xcodeproj'
platform :ios, '10.3'
target 'MyProject' do
use_frameworks!
# Backend
pod 'Parse', '1.6'
pod 'Parse/FacebookUtils'
pod 'Parse/TwitterUtils'
pod 'FBSDKCoreKit', '4.28.0'
pod 'FBSDKLoginKit', '4.28.0'
pod 'FBSDKShareKit', '4.28.0'
end
这是我在执行pod install
时遇到的错误:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Bolts":
In Podfile:
FBSDKCoreKit (= 4.28.0) was resolved to 4.28.0, which depends on
Bolts (~> 1.7)
Parse (= 1.6) was resolved to 1.6.0, which depends on
Bolts (~> 1.1.3)
有关如何解决这个问题的想法吗?
答案 0 :(得分:1)
在这种情况下,请尝试使用“ pod更新螺栓”。