我正在尝试从
FirebaseCrashlytics
升级到 Crashlytics
。我可以导入 Firebase,但不能导入 FirebaseCrashlytics。这是我的 podfile:
platform :ios, :deployment_target => "9.0"
def shared_pods
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'SVProgressHUD'
pod 'IGHTMLQuery'
pod 'OpenTok', '~> 2.16.3'
end
target 'MyApp' do
#use_frameworks!
shared_pods
end
我无法取消注释 use_frameworks!因为它破坏了我已经在使用的其他豆荚。
我的桥接头:
#import "FirebaseCrashlytics/FirebaseCrashlytics.h"
#import "FirebaseCore/FirebaseCore.h"
这就是我得到的:
根据 firebase 文档,您只需导入 Firebase,而不是 FirebaseCrashlytics。
https://firebase.google.com/docs/crashlytics/get-started?platform=ios
如果您将其用作 Swift 框架,请确保将其添加到目标的
Frameworks, Libraries, and Embedded Content
尝试运行以下命令(警告,先保存文档):
pod cache clean --all
cd ios
pod deintegrate
pod install