我使用react-native-fcm进行远程推送通知,但它会出现以下错误:

ld:找不到-lFirebaseCore的库

豆荚:

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

target 'SefrTaSad' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for SefrTaSad

  pod 'Firebase'
  pod 'Firebase/Messaging'

end

播客文件.锁:

PODS:
  - Firebase (5.5.0):
    - Firebase/Core (= 5.5.0)
  - Firebase/Core (5.5.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 5.1.0)
  - Firebase/CoreOnly (5.5.0):
    - FirebaseCore (= 5.1.0)
  - Firebase/Messaging (5.5.0):
    - Firebase/CoreOnly
    - FirebaseMessaging (= 3.1.0)
  - FirebaseAnalytics (5.1.0):
    - FirebaseCore (~> 5.1)
    - FirebaseInstanceID (~> 3.2)
    - GoogleAppMeasurement (~> 5.1)
    - GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
    - GoogleUtilities/MethodSwizzler (~> 5.2.0)
    - GoogleUtilities/Network (~> 5.2)
    - "GoogleUtilities/NSData+zlib (~> 5.2)"
    - nanopb (~> 0.3)
  - FirebaseCore (5.1.0):
    - GoogleUtilities/Logger (~> 5.2)
  - FirebaseInstanceID (3.2.0):
    - FirebaseCore (~> 5.1)
    - GoogleUtilities/Environment (~> 5.2)
  - FirebaseMessaging (3.1.0):
    - FirebaseCore (~> 5.0)
    - FirebaseInstanceID (~> 3.0)
    - GoogleUtilities/Reachability (~> 5.2)
    - Protobuf (~> 3.1)
  - GoogleAppMeasurement (5.1.0):
    - GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)
    - GoogleUtilities/MethodSwizzler (~> 5.2.0)
    - GoogleUtilities/Network (~> 5.2)
    - "GoogleUtilities/NSData+zlib (~> 5.2)"
    - nanopb (~> 0.3)
  - GoogleUtilities/AppDelegateSwizzler (5.2.2):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (5.2.2)
  - GoogleUtilities/Logger (5.2.2):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (5.2.2):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (5.2.2):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (5.2.2)"
  - GoogleUtilities/Reachability (5.2.2):
    - GoogleUtilities/Logger
  - nanopb (0.3.8):
    - nanopb/decode (= 0.3.8)
    - nanopb/encode (= 0.3.8)
  - nanopb/decode (0.3.8)
  - nanopb/encode (0.3.8)
  - Protobuf (3.6.1)

DEPENDENCIES:
  - Firebase
  - Firebase/Messaging

SPEC REPOS:
  https://github.com/cocoapods/specs.git:
    - Firebase
    - FirebaseAnalytics
    - FirebaseCore
    - FirebaseInstanceID
    - FirebaseMessaging
    - GoogleAppMeasurement
    - GoogleUtilities
    - nanopb
    - Protobuf

SPEC CHECKSUMS:
  Firebase: 8c957f9cb3852b519180fb378801b7eeeba4d288
  FirebaseAnalytics: d4a260c114aec0d765ab5b9c404ac63de1d29381
  FirebaseCore: ee4b35cf8c8e781da296cc7c15125e4608bb954d
  FirebaseInstanceID: 8cd2c6cfe7b9ab65ce7e248f6da7f26f6775b9be
  FirebaseMessaging: f67b3719f520ee200da0e20ce577fe2bce0c01d0
  GoogleAppMeasurement: e785bdb86d3d280abc778156cec323a975f11d1d
  GoogleUtilities: 06b66f9567769a7958db20a92f0128b2843e49d5
  nanopb: 5601e6bca2dbf1ed831b519092ec110f66982ca3
  Protobuf: 1eb9700044745f00181c136ef21b8ff3ad5a0fd5

PODFILE CHECKSUM: 5128fcc348aba846d880d9bb9978b4bf02c0718d

COCOAPODS: 1.5.3

使用react native构建项目

enter image description here

enter image description here

我如何解决这个错误?

推荐答案

我决定打开"项目名称".xcworkspace

React-native相关问答推荐

@react-native-community/cli-platform-ios/native_modules' 来自哪里?

哪个版本的@stripe/stripe-react-native 模块支持 react native 0.62.0 typscript 模板?

React Native TextInput 在android上打开时会自动关闭

React Native Expo - 不再支持 Node.js 版本 11.13.0

如何在 React-Native 中创建检测自动位置的map

如何使用 AsyncStorage React Native 缓存 API 数据

Invariant Violation:requireNativeComponent: "RNCWebView" was not found in the UIManager

打包程序无法启动

异步(async)/等待(await)和递归

因 JVM 堆空间耗尽而导致守护进程到期?

react-native 从右到左

如何判断 goBack() 函数在react-navigation 中是否可行?

NativeBase + Exponent Header

为什么 Android Studio 强制使用 Android 支持库中的 Androidx?

React Native:如何获取文件大小、mime 类型和扩展名?

如何将 Leaflet.js 与 react-native 一起使用

在 React Native Navigator 中的组件之间传递值

如何在样式组件之外获取主题?

为什么我收到警告:函数作为 React 子级无效?

将 colored颜色 变量导入我的样式