我在找方法FirebaseFirestoreSwift
和迦太基共存。
我正在使用 FirebaseFirestore
和 FirebaseFirestoreSwift
和其他 Firebase 框架。
通常使用 Cocoapods,但构建非常重,需要很长时间。
所以我尝试使用迦太基。
幸运的是我找到了公共(public)迦太基 github .
通过这个,我能够转换为使用 Firebase 框架到 carthage。
但是没有FirebaseFirestoreSwiftBinary
.
我仅将 Cocoapods 用于 FirebaseFirestoreSwift
,因为没办法。
但它甚至下载并构建了相关的FirebaseFirestore
,抹去迦太基的好处。
然后我尝试下载 podspec 并使用未设置依赖项的本地 podspec,如下所示:
FirebaseFirestoreSwift .我删除了第 39 行。
但是这种方式是失败的。未能建立。
因为 FirebaseFirestoreSwift 有 import FirebaseFirestore
我想使用 $ {SRCROOT} /Carthage/Build/iOS/FirebaseFirestore.framework
但想不出好办法。
有没有人有一个好主意或成功的方法?
最佳答案
构建二进制文件的步骤如下:
/firebase-ios-sdk-master/ReleaseTooling/Sources/ZipBuilder
pods.json
其中包含:[
{
"name": "FirebaseFirestoreSwift"
}
]
ZipBuilder
构建二进制文件的工具。 Docs for ZipBuilder. . swift run zip-builder --zip-pods $(pwd)/pods.json
将构建 FirebaseFirestore.swift
适用于各种不同的架构。有关如何使用 ZipBuilder 的更多信息,请访问 swift run zip-builder --help
关于ios - 如何明智地将 FirebaseFirestoreSwift 与 Carthage 结合使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59591715/