React-native-firebase: Crashlytics not installed (pods)

Created on 2 Sep 2018  路  7Comments  路  Source: invertase/react-native-firebase

Issue

Installing crashlytics using pods, when trying firebase.crashlytics().crash() i get this error:

screen shot 2018-09-02 at 12 54 52

Environment

  1. Application Target Platform:

iOS

  1. Development Operating System:

macOS Sierra

  1. Build Tools:

Xcode

  1. React Native version:

0.56.0

  1. React Native Firebase Version:

5.0.0-rc1

  1. Firebase Module:

Crashlytics

  1. Are you using typescript?

no

Build Error Crashlytics

All 7 comments

I am getting the same error

Just spoken with someone on Discord about this issue. It's the result of something being cached. Best thing to do would be the following:

  • stop any react native packager running
  • delete the Pods/ directory
  • delete the Podfile.lock
  • run pod install
  • run react-native start --reset-cache

Let me know if this is still an issue and I can re-open for further investigation - thanks

Thanks for your answer @Ehesp . I have done the steps you suggested but anything changed and I'm getting the same result.

Thanks @Ehesp but that does not work at all i'm afraid..

I'm now able to install crashlytics with the latest version 5.0.0.

I have issue problem with firebase 5.0.0. Crashlytics working fine for android but not iOS.

podfile

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

target 'myapp' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for myapp
  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  pod 'Firebase/Auth'
  pod 'Fabric', '~> 1.7.11'
  pod 'Crashlytics', '~> 3.10.7'
  pod 'GoogleSignIn'

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

end

package.json

{
  "name": "myapp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@babel/runtime": "^7.1.2",
    "axios": "^0.18.0",
    "moment": "^2.22.2",
    "prop-types": "^15.6.2",
    "react": "16.5.0",
    "react-native": "0.57.1",
    "react-native-fbsdk": "^0.8.0",
    "react-native-firebase": "^5.0.0",
    "react-native-google-signin": "^1.0.0-rc6",
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.47.1",
    "react-test-renderer": "16.5.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

img_0004

Suffering the exact same problem as @pontusab and @recepkocur

Environment

  1. Application Target Platform: iOS

  2. Development Operating System: macOS High Sierra

  3. Build Tools: Xcode 9.4.1

  4. React Native version: 0.55.4

  5. React Native Firebase Version: 4.3.8

  6. Firebase Module: Crashlytics

  7. Are you using typescript? yes

package.json

{
  "name": "xxxxxxx",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "flow": "flow",
    "fix-android-build-types": "cp fixed-runAndroid.js node_modules/react-native/local-cli/runAndroid/runAndroid.js",
    "fix-cocoapods-build": "./run-patch.sh",
    "postinstall": "yarn run fix-android-build-types && yarn run fix-cocoapods-build && yarn run react-native-schemes-manager fix-libraries"
  },
  "xcodeSchemes": {
        "Debug": ["Bamboo"],
    "Release": []
  },
  "dependencies": {
    "metro": "^0.30.0",
    "moment": "^2.22.2",
    "react": "16.3.1",
    "react-native": "0.55.4",
    "react-native-elements": "^0.19.0",
    "react-native-firebase": "4.3.8",
    "react-native-hyperlink": "^0.0.12",
    "react-native-vector-icons": "^4.5.0",
    "react-navigation": "^1.3.0"
  },
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-jest": "22.4.0",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react-native": "4.0.0",
    "flow-bin": "^0.66.0",
    "jest": "22.4.0",
    "react-native-schemes-manager": "^1.0.5",
    "react-test-renderer": "16.2.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

Podfile

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'
use_frameworks!

target 'xxxxxxxx' do

  # Explicitly include Yoga if you are using RN >= 0.42.0
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :inhibit_warnings => true

  # React Native thingies
  pod 'React', :path => '../node_modules/react-native', :inhibit_warnings => true, :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    'RCTLinkingIOS',
    'RCTImage',
    'RCTAnimation'
  ]

  # Third party deps podspec link
  pod 'DoubleConversion', :inhibit_warnings => true, :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'Folly', :inhibit_warnings => true, :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'AFNetworking', '2.6.3', :inhibit_warnings => true
  pod 'Firebase/Core', '~> 5.3.0'
  pod 'Firebase/Crash', '~> 5.3.0'
  pod 'Firebase/Analytics', '~> 5.3.0'
  pod 'Google-Mobile-Ads-SDK', '7.34.0'
  pod 'Fabric', '~> 1.7.5'
  pod 'Crashlytics', '~> 3.10.4'

  pod 'SideMenu', '3.1.5'
  pod 'RxSwift', '3.6.1', :inhibit_warnings => true
  pod 'RxCocoa', '~> 3.6', :inhibit_warnings => true
  pod 'RxKeyboard', '0.6'
  pod 'Alamofire', '~> 4.4'
  pod 'AlamofireImage', '~> 3.1'
  pod 'RxAlamofire', '~> 3.0'
  pod 'Zip', '~> 1.1'
  pod 'Reachability', '~>3.2'
  pod 'SQLite.swift', '~> 0.11.4', :inhibit_warnings => true
  pod 'TPInAppReceipt'

  pod 'FBSDKCoreKit', '4.31.1', :inhibit_warnings => true
  pod 'FBSDKLoginKit', '4.31.1', :inhibit_warnings => true
  pod 'FBSDKShareKit', '4.31.1', :inhibit_warnings => true

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if ['RxSwift', 'RxCocoa', 'RxKeyboard', 'RxAlamofire'].include? target.name
        target.build_configurations.each do |config|
          config.build_settings['SWIFT_VERSION'] = '3.2'
        end
      end
    end
  end

end

Podfile.lock -- Podfile.lock.txt

Was this page helpful?
0 / 5 - 0 ratings