【发布时间】:2021-01-14 16:42:24
【问题描述】:
我正在使用 Window 10 并尝试使用 Pod 将 Firebase/Analytics 与 flutter 集成,一切似乎都很好,除了运行 pod install 时出现此错误
这里是stackTrace
CocoaPods : 1.9.3
Ruby : ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
RubyGems : 3.0.3
Host : Unable to find an executable (No such file or directory - sw_vers) ()
Xcode : -version) ()
Git : git version 2.27.0.windows.1
Ruby lib dir : F:/Ruby26-x64/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
这是我的Pod 文件
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Runner' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Runner
end
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
podfile 位于我的 flutter 项目的 ios 文件夹中
你能帮我解决这个问题吗?
【问题讨论】:
-
在将firebase集成到flutter for ios时,您不需要触摸Podfile和AppDelegate。您只需在 Xcode 中添加 GoogleService-Info.plist 文件。您遵循的说明适用于本机 iOS 设置。 reference.
标签: ios firebase flutter cocoapods firebase-analytics