更新未在podfile中声明的pod

时间:2017-10-08 05:56:55

标签: cocoapods

我正在将一个项目从Swift 3迁移到Swift 4. BrightFutures 存在问题,我在$ curl -u elastic:changeme localhost:9200 { "name" : "5aEHJ-Y", "cluster_name" : "docker-cluster", "cluster_uuid" : "3FmaYN7rS56oBTqWOyxmKA", "version" : { "number" : "5.6.2", "build_hash" : "57e20f3", "build_date" : "2017-09-23T13:16:45.703Z", "build_snapshot" : false, "lucene_version" : "6.6.1" }, "tagline" : "You Know, for Search" } 中没有明确声明这个pod。

Podfile列为BrightFutures,但我想要的版本是5.2.0。我很难弄清楚这个吊舱是如何管理的。我的pod文件没有声明:

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

我的尝试

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

  2. pod update

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

  4. 删除pod install中的BrightFutures内容,然后运行Podfile.lock

  5. 进一步说明

    我注意到pod update框架正在使用BrightFutures。我手动更新Spine(使用Carthage),并确保它在Swift 4中构建。我将Spine 6.0.0框架拖到BrightFutures

    有人有任何想法吗?

1 个答案:

答案 0 :(得分:0)

Spine库在cocoapods podspec文件中声明了对BrightFutures的依赖:

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

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