gpt4 book ai didi

swift - Xcode 不接收 pod 更新

转载 作者:行者123 更新时间:2023-11-30 10:41:54 24 4
gpt4 key购买 nike

开始处理一个用 Swift 3 和 Xcode8 开发的过时项目。

尝试让它在 Xcode 10 和 9 下工作(分开)。将每个已知位置的目标平台更新为 11,将 swift 版本更新为 4/5。有很多过时的 pod 会导致构建错误,因此我使用 pod update 和 pod install 更新了它们。但是,Xcode 不会选择新版本,特别是 SKPhotoBrowserSwiftDate 分别保留在版本 4.1.0 和 4.3.0 上,即使 pod install code> 表明已安装版本 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
end

pod 安装:

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.

采取的步骤:

  • 所有 Xcode 清理 - cmd + shift + k、cmd + shift + alt + k、删除派生数据
  • pod deintegrate && pod cleanpod install
  • 关闭 Xcode
  • 重新启动 Mac

有趣的是,似乎没有什么会影响 Xcode 状态 - 无论是 pod 更新还是 pod 分解,它们总是与旧版本一起存在。

如何成功让 Xcode 看到新版本?

最佳答案

也许您可以尝试在 podfile 上明确说明版本?像这样:

pod 'SKPhotoBrowser', '~> 6.1.0'
pod 'SwiftDate', '~> 6.0.3'

如果问题得到解决,那么您可以删除显式版本。

关于swift - Xcode 不接收 pod 更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56606003/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com