开始在Swift 3和Xcode8中开发一个过时的项目。
试图使它在Xcode 10和9下工作(分别拥有它们)。用目标平台将每个已知的位置更新为11,将快速版本更新为4/5。有许多过时的豆荚会导致构建错误,所以我用pod update和pod install更新了它们。但是,Xcode没有选择新版本,特别是SKPhotoBrowser和SwiftDate分别停留在4.1.0和4.3.0版本上,尽管pod install声明安装了6.1.0和6.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
endpod 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状态--无论是pod更新还是荚解体,它们总是存在于旧版本中。
如何成功地使Xcode看到新版本?
发布于 2019-06-14 23:19:41
也许您可以尝试在podfile上显式地声明版本?类似于:
pod 'SKPhotoBrowser', '~> 6.1.0'
pod 'SwiftDate', '~> 6.0.3'如果问题解决了,那么您可以删除显式版本。
https://stackoverflow.com/questions/56606003
复制相似问题