我一直在尝试在项目上使用cocoapods安装Firebase,但始终收到奇怪的错误消息。过去几天,我一直在为此寻找解决方案。
Pod文件
platform :ios, '13.0'
target 'LambdaTimeline' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for LambdaTimeline
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'FirebaseUI/Google'
pod 'GoogleSignIn'
pod 'FirebaseUI'
end
终端错误:
Installing BoringSSL-GRPC (0.0.3)
Installing FBSDKCoreKit (5.15.1)
Installing FBSDKLoginKit (5.15.1)
Installing Firebase (6.19.0)
[!] Error installing Firebase
[!] /usr/bin/git clone https://github.com/firebase/firebase-ios-sdk.git /var/folders/5c/rdypnj150p99zkp8cn55qty80000gn/T/d20200708-5128-bywz2w --template= --single-branch --depth 1 --branch 6.19.0
Cloning into '/var/folders/5c/rdypnj150p99zkp8cn55qty80000gn/T/d20200708-5128-bywz2w'...
Note: switching to 'a43ca45c0dc9480fd16165eabc55e1cbaacc1b67'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
Updating files: 100% (3363/3363), done.
fatal: No url found for submodule path 'Firestore/Example/App/Testing' in .gitmodules