我正在将一个项目从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
- BrightFutures (5.2.0):
- Result (~> 3.2)
pod update
pod install
- > sudo gem install cocoapods
/ pod update
删除pod install
中的BrightFutures
内容,然后运行Podfile.lock
我注意到pod update
框架正在使用BrightFutures
。我手动更新Spine
(使用Carthage),并确保它在Swift 4中构建。我将Spine
6.0.0
框架拖到BrightFutures
。
有人有任何想法吗?
答案 0 :(得分:0)
Spine
库在cocoapods podspec文件中声明了对BrightFutures
的依赖:
s.dependency 'BrightFutures', ~> '5.2.0'
这就是为什么BrightFutures
不会超出当前版本的原因。删除版本控制参数允许更新到最新版本。