我们需要在项目中使用Firebase Crashlytics。 我们不使用CocoaPods库,而是需要一个静态链接的库(.a) 您能帮我如何将Firebase Crashlytics库下载到我们的项目中吗?
这是构建过程中输出的错误:
Prepare build
Workspace PDF Reader Pro Edtition | Scheme PDF Reader Pro Edition | Destination My Mac
Using new build system
Building targets in parallel
Planning build
Constructing build description
Build target PDF Reader Pro Edition
Project PDF Reader Pro Edtion | Configuration Debug | Destination My Mac | SDK macOS 10.15
PDF Reader Pro Edition isn't code signed but requires entitlements. It is not possible to add entitlement...
OpenGL is deprecated. Consider migrating to Metal instead.
Building for macOS, but the linked framework 'FirebaseCrashlytics.framework' was built for Mac Catalyst.
Build failed 2020/6/28, 10:06 AM 2.9 seconds
1 error, 2 warnings
答案 0 :(得分:0)
GitHub项目描述了如何在没有Cocoapods的情况下构建项目。
https://github.com/firebase/firebase-ios-sdk/tree/master/Crashlytics
Crashlytics/generate_project.sh
open gen/FirebaseCrashlytics/FirebaseCrashlytics.xcworkspace