ios - 使用 React Native 构建 IOS : ld: framework not found FIRAnalyticsConnector

标签 ios firebase react-native

我正在将 Firebase 集成到我的 React Native 应用程序中,主要用于身份验证和 Firestore 数据库。尽管我按照 React Native Firebase 中的安装说明进行操作,当我尝试从 xcode 构建时,它给了我一个错误:

ld: framework not found FIRAnalyticsConnector clang: error: linker command failed with exit code 1 (use -v to see invocation)

我正在使用 Pod 来构建项目。有什么帮助吗?

最佳答案

我找到了问题的答案。 它只是将 .framework 文件添加到链接的框架中。

即:

从 xcode 中,打开 Pods 文件夹,

**

Pods -> Pods -> FirebaseAnalytics -> Frameworks -> FIRAnalyticsConnector.framework

** enter image description here

并将该文件添加到常规 -> 链接框架和库中。 enter image description here

关于ios - 使用 React Native 构建 IOS : ld: framework not found FIRAnalyticsConnector,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55895349/

相关文章:

android - 如何使用 PhoneGap 拍摄应用内照片?

ios - MVVM 协调器和弹出 UIViewController

ios - Swift:打印时崩溃

swift - 更新 Firebase 时由于未捕获的异常 'NSUnknownKeyException' 而终止应用程序

react-native - 如何检查底页是否打开或关闭

ios - Objective C 属性在使用后传递重置为 null

android - 无法在 android 中同步 gradle for firebase

java - Firebase Cloud Function onWrite 完成后,如何触发 Android 客户端回调?

react-native - 如何使用 React Native 制作一个 vpn 应用程序

javascript - React Native 中的 Promise 调用