pod install 错误>>> [!] 无法确定 `AdewoleFarmApp` 目标的平台

Wil*_*ene 4 xcode cocoapods swift aws-sdk swiftui

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

Pod 文件是:

# 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
Run Code Online (Sandbox Code Playgroud)

以下是我运行 pod install 时遇到的错误: 我的 Pod 错误

小智 22

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