因此,我尝试将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/libRepositories : master - https://github.com/CocoaPods/Specs.git @ 0ceca6006fa5a6d42842e7d67324c9fdec36331e
安装源
Executable Path: /usr/local/Cellar/cocoapods/1.4.0/libexec/bin/pod
外挂程式
cocoapods-deintegrate : 1.0.2cocoapods-plugins : 1.0.0cocoapods-search : 1.0.0cocoapods-stats : 1.0.0cocoapods-trunk : 1.3.0cocoapods-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)

有关如何解决此问题的任何想法?

最佳答案

在这种情况下,请尝试使用“pod update螺栓”。

关于ios - cocoapods中常见的pod依赖关系问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49265468/

10-13 09:32