正在更新未在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)
我尝试
pod update
pod install
sudo gem install cocoapods
- >pod update
/pod install
删除
BrightFutures
东西在Podfile.lock
,然后运行pod update
附加说明
我注意到BrightFutures
正在使用由Spine
框架。我手动更新了Spine
(使用Carthage),并确保它在Swift 4中生成。我将6.0.0
BrightFutures
框架拖入Spine
。
任何人有任何想法?
答
的Spine
库中声明的依赖,以BrightFutures
在它的CocoaPods podspec文件:
s.dependency 'BrightFutures', ~> '5.2.0'
这就是为什么BrightFutures
不会超出当前版本。删除版本控制参数允许更新到最新版本。