我下載了 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 時遇到的錯誤:
![pod 安裝錯誤>>> [!] 無法確定 `AdewoleFarmApp` 目標的平臺](https://i.stack.imgur.com/HWkFU.jpg)
uj5u.com熱心網友回復:
嘗試取消注釋(洗掉 #)podfile 的第二行。我猜平臺宣告不起作用,因為它被注釋掉了
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/529801.html
