当我将通知集成到IOS中时,出现此错误ld:-lFirebaseCore找不到库

时间:2019-04-23 23:50:52

标签: ios xcode firebase react-native firebase-cloud-messaging

我要在xcode上构建项目时出现此ld: library not found for -lFirebaseCore error

(当我为Android构建时,此方法有效) 有人知道如何解决这个问题

以下信息可帮助您更快地找到解决方案

$ react-native info
 info 
  React Native Environment Info:
    System:
      OS: macOS 10.14.4
      CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
      Memory: 972.16 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.15.0 - /usr/local/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 21, 22, 24, 25, 26, 27, 28
        Build Tools: 25.0.0, 26.0.0, 26.0.2, 26.0.3, 27.0.1, 27.0.3, 28.0.3
        System Images: android-18 | Google APIs Intel x86 Atom, android-19 | Google APIs Intel x86 Atom, android-22 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-25 | Google APIs ARM EABI v7a, android-25 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.4 AI-183.5429.30.34.5452501
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.5 => 0.59.5 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-rename: 2.4.1

豆荚

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

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

  # Pods for AppXYZ
  # Required by RNFirebase
  pod 'Firebase/Core', '~> 5.15.0'
  pod 'Firebase/Messaging', '~> 5.15.0'

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

end

这是错误的图片 enter image description here

以下是the links binary with libraries和库: the links binary with libraries libraries

我从firebase文档发出的通知的实现,这是我遵循的步骤:

0 个答案:

没有答案