Firebase AppCheck 无法使用 NativeScript 安装

Firebase AppCheck failed to install using NativeScript

我正在尝试使用目标 iOS 14.4 在我的 NativeScript 项目的 Podfile 中安装 pod 'FirebaseAppCheck', '8.0.0-beta'。但是,它给出了下面的错误

[!] CocoaPods could not find compatible versions for pod "FirebaseAppCheck": In Podfile: FirebaseAppCheck (= 8.0.0-beta)

Specs satisfying the FirebaseAppCheck (= 8.0.0-beta) dependency were found, but they required a higher minimum deployment target. 'pod install' command failed.

这是需要未来 iOS 版本的 Firebase AppCheck 中的错误,还是 NativeScript 无法安装 beta pod 的问题?

我找到了这个问题的根本原因,分为两部分:

(1) 在 App_Resources/iOS/Podfile 中添加 platform :ios, '11.0' This is for Cocoapods

(2) 在App_Resources/iOS/build.xcconfigh中,添加IPHONEOS_DEPLOYMENT_TARGET = 11.0,这是为了XCode

即使在 (1) 完成后,该应用程序也应该可以运行。但是,为了与目标构建保持一致,我建议两者都更改。

但是,就我而言,在解决了上述两点后,我又遇到了一个问题。因为 AppCheck 要求 requires 'Firebase/Core', '~>8.0',但另一方面,我的项目中也有 @nativescript/firebase,硬编码为使用 Firebase/Core ~>6.34.0。因此,我仍然无法在不牺牲 @nativescript/firebase.

的情况下使项目与 AppCheck 一起工作