【问题标题】:Xcode Build Errors After Pod UpdatePod 更新后的 Xcode 构建错误
【发布时间】:2020-07-24 19:13:25
【问题描述】:

我刚刚更新了 pod 并尝试构建我的项目;收到以下错误:

这是我的 podfile:

# Uncomment the next line to define a global platform for your project

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '10.0'

target 'changelater' do
  # Comment the next line if you don't want to use dynamic frameworks


use_frameworks!

  # Pods for changelater
    pod 'Firebase/Analytics'
    pod 'Firebase/Core'
    pod 'Firebase/Database'
    pod 'FirebaseUI/Auth'
    pod 'Firebase/Firestore'
    pod 'Firebase/Functions'
    pod 'ProgressHUD'
    pod 'Kingfisher', '~> 5.0'
    pod 'Stripe', '15.0.1'
    pod 'Alamofire'
    pod 'GooglePlaces'
    pod 'GoogleMaps'
    pod 'GooglePlacesSearchController'
    pod 'GooglePlacePicker'

end

知道为什么我在更新后收到此错误吗?以及我该如何解决?我已经做了shift+command+K,但它没有帮助。

【问题讨论】:

  • 您的 podfile 中有 platform :ios, '10.0',但您的应用似乎已配置为部署到 iOS 13 - 这会导致问题吗?

标签: swift xcode cocoapods mbprogresshud svprogresshud


【解决方案1】:

在更新 pod 依赖项后清理项目是一个很好的做法。 我过去在更新 cocoapods 后也遇到过类似的问题。

试试

  1. 在 Xcode 菜单中:Product -> Clean build folder (shift+command+K)
  2. 再次构建您的项目(command+B)

【讨论】:

  • 我也这样做了,但它仍然给我同样的错误
【解决方案2】:

我只需将我的 xcode 更新到最新版本,错误就消失了。

【讨论】:

    【解决方案3】:

    只是因为我没有最新的 xcode。所以我不得不更新我的 xcode 并更新我的 podfile 版本。之后一切都很好!

    【讨论】:

      猜你喜欢
      • 2018-05-05
      • 2019-11-05
      • 2015-05-31
      • 2020-09-13
      • 1970-01-01
      • 2022-06-15
      • 1970-01-01
      • 1970-01-01
      • 2015-02-17
      相关资源
      最近更新 更多