【发布时间】:2021-07-05 13:13:21
【问题描述】:
我已使用 XCode 将 GoogleService-Info.plist 添加到 ios\Runner。
我创建了这个 Podfile
platform :ios, '10.0'
target 'Runner' do
#use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Analytics'
end
pubspec.yaml 有
firebase_core: ^1.0.2
firebase_analytics: ^7.1.1
在 https://codemagic.io/ 上构建时仍然出现此错误
Xcode's output:
/Users/builder/clone/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'firebase_analytics' not found
@import firebase_analytics;
谢谢!!
【问题讨论】:
-
尝试从
ios/Podfile中删除use_frameworks!,看看是否可行 -
已经#d谢谢
标签: ios xcode flutter firebase-analytics codemagic