开始处理在Swift 3和Xcode8中开发的过时项目。
尝试使其在Xcode 10和9下工作(单独拥有它们)。使用目标平台将每个已知位置更新为11,将快速版本更新为4/5。有很多过时的Pod会导致构建错误,因此我用pod update
和pod install
更新了它们。但是,Xcode不会选择新版本,特别是SKPhotoBrowser
声明版本6.1.0和6.0分别将SwiftDate
和pod install
保留在版本4.1.0和4.3.0上。 .3已安装。
Podfile:
# Uncomment this line to define a global platform for your project
use_frameworks!
platform :ios, '11.0'
# Firebase pods
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
pod 'Firebase/Core'
pod 'GoogleSignIn'
#Facebook Authentication Pods
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'FacebookCore'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
# Lottie Animation Framework
pod 'lottie-ios'
# Regular pods
pod 'AFNetworking'
pod 'Alamofire'
pod 'BRYXBanner'
pod 'Crashlytics'
pod 'DZNEmptyDataSet'
pod 'Fabric'
pod 'Instabug'
pod 'MBProgressHUD'
pod 'PromiseKit'
pod 'SDWebImage'
pod 'SKPhotoBrowser'
pod 'SkyFloatingLabelTextField'
pod 'Stripe' ##, :inhibit_warnings => true
pod 'SVProgressHUD'
pod 'SwiftDate'
pod 'TRVideoView'
pod 'TwicketSegmentedControl'
target 'AppName' do
end
pod install
:
Analyzing dependencies
Downloading dependencies
Installing AFNetworking 3.2.1 (was 3.1.0)
Installing Alamofire 4.8.2 (was 4.6.0)
Installing BRYXBanner 0.8.4 (was 0.8.0)
Installing Crashlytics 3.13.1 (was 3.9.3)
Using DZNEmptyDataSet (1.8.1)
Installing FBSDKCoreKit 5.0.2 (was 4.29.0)
Installing FBSDKLoginKit 5.0.2 (was 4.29.0)
Installing FBSDKShareKit 5.0.2 (was 4.29.0)
Installing Fabric 1.10.1 (was 1.7.2)
Installing FacebookCore 0.7.0 (was 0.3.0)
Installing Firebase 5.20.2 (was 4.7.0)
Installing FirebaseAnalytics 5.8.1 (was 4.0.5)
Installing FirebaseAnalyticsInterop (1.2.0)
Installing FirebaseAuth 5.4.2 (was 4.4.0)
Installing FirebaseAuthInterop (1.0.0)
Installing FirebaseCore 5.4.1 (was 4.0.12)
Installing FirebaseCrash 3.1.1 (was 2.0.2)
Installing FirebaseDatabase 5.1.1 (was 4.1.2)
Installing FirebaseInstanceID 3.8.1 (was 2.0.7)
Installing FirebaseMessaging 3.5.0 (was 2.0.7)
Installing FirebaseStorage 3.1.1 (was 2.1.0)
Installing GTMSessionFetcher 1.2.2 (was 1.1.12)
Installing GoogleAppMeasurement (5.8.1)
Installing GoogleSignIn 4.4.0 (was 4.1.1)
Installing GoogleToolboxForMac 2.2.1 (was 2.1.3)
Installing GoogleUtilities (5.8.0)
Installing Instabug 8.4.1 (was 7.3.14)
Using MBProgressHUD (1.1.0)
Installing PromiseKit 6.8.5 (was 4.5.0)
Installing Protobuf 3.8.0 (was 3.5.0)
Installing SDWebImage 5.0.6 (was 4.2.2)
Installing SKPhotoBrowser 6.1.0 (was 4.1.0) <- explicit problem here
Installing SVProgressHUD 2.2.5 (was 2.2.2)
Installing SkyFloatingLabelTextField 3.7.0 (was 3.4.0)
Installing Stripe 15.0.1 (was 11.5.0)
Installing SwiftDate 6.0.3 (was 4.3.0) <- and here
Using TRVideoView (0.1.4)
Installing TwicketSegmentedControl 0.1.2
Using leveldb-library (1.20)
Installing lottie-ios 3.1.0 (was 2.1.5)
Installing nanopb 0.3.901 (was 0.3.8)
Removing Bolts
Removing GTMOAuth2
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 28 dependencies from the Podfile and 41 total pods installed.
已采取的步骤:
pod deintegrate && pod clean
和pod install
有趣的是,似乎没有什么影响Xcode状态-吊舱更新或吊舱分解都没有,它们始终与旧版本一起使用。
如何使Xcode看到新版本?
答案 0 :(得分:0)
也许您可以尝试在podfile上明确声明版本? 像这样:
pod 'SKPhotoBrowser', '~> 6.1.0'
pod 'SwiftDate', '~> 6.0.3'
如果问题已解决,则可以删除显式版本。