【问题标题】:pod install error>>> [!] Unable to determine the platform for the `AdewoleFarmApp` targetpod 安装错误>>> [!] 无法确定“AdewoleFarmApp”目标的平台
【发布时间】:2023-01-18 16:45:13
【问题描述】:

我下载了 github amplify.swift,按照安装说明创建了 Podfile, 但 Cocoapods“pod install”出现错误。

Podfile 是:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

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

  # Pods for AdewoleFarmApp
    pod 'Amplify'
    pod 'AmplifyPlugins/AWSCognitoAuthPlugin'
    pod 'AWSPredictionsPlugin'
    pod 'CoreMLPredictionsPlugin'

end

下面是我在运行 pod install 时遇到的错误:

【问题讨论】:

    标签: swift xcode swiftui cocoapods aws-sdk


    【解决方案1】:

    尝试取消注释(删除 #)podfile 的第二行。我猜平台声明不起作用,因为它被注释掉了

    【讨论】:

      【解决方案2】:

      Stefano 的修复是正确的,它为我做了

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-01-08
        • 2020-09-23
        • 1970-01-01
        • 2019-02-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多