错误:在iOS上本地未找到RNFirebase核心模块

use*_*490 19 cocoapods react-native react-native-firebase

我创建了一个新的应用程序,我正在尝试使用react-native-firebase.但我不断得到这个错误:

在iOS上本地未找到RNFirebase核心模块,确保您已在项目的"Podfile"中正确包含RNFirebase pod并运行"pod install".

有关ios设置指南,请参见http://invertase.link/ios.

我已经完成的步骤:

  1. yarn add react-native-firebase

  2. react-native link react-native-firebase

  3. 在.../myproject/ios/myproject下设置我的.plist文件
  4. pod update确保我使用Ruby 2.5.0后跑了
  5. Ran pod安装

我目前使用的pod文件是:

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'MyProject' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!
    pod 'Firebase/Core'
    pod 'Firebase/Database'
    pod 'Firebase/Messaging'

  target 'MyProjectTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
Run Code Online (Sandbox Code Playgroud)

这些是我正在使用的版本:

"react": "^16.3.0-alpha.1",
"react-native": "0.54.2",
"react-native-firebase": "^3.3.1",
Run Code Online (Sandbox Code Playgroud)

小智 0

我遇到了同样的问题,在尝试修复它时使我的应用程序在启动时崩溃。

我通过终端将其移至 下,ios/AppFolder/但 Xcode 从未意识到该文件。

对我有帮助的是在 Xcode 中打开我的项目。然后左键单击“我的” AppFolder > Add Files,然后添加GoogleService-Info.plist.