Firebase Firestore を設定したいです。すべての手順を実行しましたが、最後の手順で、以下に示すエラー リンクが表示されました。
これを実行するとポッドのインストール以下のコマンドでエラーが発生しました
[!]プラットフォームが指定されていないため、ターゲットに
ios
バージョン付きのプラットフォームを自動的に割り当てています。Podfile でこのターゲットのプラットフォームを指定してください。を参照してください。11.4
testing_gowtham
https://guides.cocoapods.org/syntax/podfile.html#platform
私のポッドファイル:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testing_gowtham' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testing_gowtham
target 'testing_gowthamTests' do
inherit! :search_paths
# Pods for testing
end
target 'testing_gowthamUITests' do
inherit! :search_paths
# Pods for testing
end
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
これを見たhttps://guides.cocoapods.org/syntax/podfile.html#プラットフォームしかし、どの行を変更する必要があるのかわかりませんでした。
この問題を解決するにはどうすればいいでしょうか?
ベストアンサー1
pod ファイルのテキスト全体を以下のテキストに置き換えて確認してください。
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testing_gowtham' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
(または)解決策2
platform :ios, '9.0'
動作しています...削除しただけです#これ