正在更新未在podfile中声明的窗格

问题描述:

我正在将项目从Swift 3迁移到Swift 4.在BrightFutures中有一个问题,我没有在我的Podfile中明确声明该窗格。正在更新未在podfile中声明的窗格

BrightFutures被列为5.2.0,但我想要的版本是6.0.0。我一直在努力研究如何管理这个吊舱。我荚文件没有它声明:

// Podfile 
platform :ios, '9.2' 
abstract_target 'Application' do 

    use_frameworks! 

    pod 'Spine', :git => 'https://github.com/kelvinlauKL/Spine.git' 
    pod 'AlamofireImage' 
    pod 'AlamofireNetworkActivityIndicator' 
    pod 'JSQDataSourcesKit' 
    pod 'RDHCollectionViewGridLayout' 
    pod 'FBSDKLoginKit' 
    pod 'PKHUD' 
    pod 'KMPlaceholderTextView' 
    pod 'Google/Analytics' 
    pod 'SVPullToRefresh' 

    target 'Pixhug Production' do 
    end 

    target 'Pixhug Staging' do 
    end 

    post_install do |installer| 
     installer.pods_project.targets.each do |target| 
      target.build_configurations.each do |config| 
       config.build_settings['ENABLE_BITCODE'] = 'NO' 
       config.build_settings['SWIFT_VERSION'] = '4.0' 
      end 
     end 
    end 

end 

Podfile.lock列出了框架:

- BrightFutures (5.2.0): 
    - Result (~> 3.2) 

我尝试

  1. pod update

  2. pod install

  3. sudo gem install cocoapods - >pod update/pod install

  4. 删除BrightFutures东西在Podfile.lock,然后运行pod update

附加说明

我注意到BrightFutures正在使用由Spine框架。我手动更新了Spine(使用Carthage),并确保它在Swift 4中生成。我将6.0.0BrightFutures框架拖入Spine

任何人有任何想法?

Spine库中声明的依赖,以BrightFutures在它的CocoaPods podspec文件:

s.dependency 'BrightFutures', ~> '5.2.0' 

这就是为什么BrightFutures不会超出当前版本。删除版本控制参数允许更新到最新版本。