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

iOS
macOS Sierra
Xcode
React Native version:0.56.0
React Native Firebase Version:5.0.0-rc1
Firebase Module:Crashlytics
typescript?no
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:
Pods/ directoryPodfile.lockpod installreact-native start --reset-cacheLet 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"
}
}
Suffering the exact same problem as @pontusab and @recepkocur
Application Target Platform: iOS
Development Operating System: macOS High Sierra
Build Tools: Xcode 9.4.1
React Native version: 0.55.4
React Native Firebase Version: 4.3.8
Firebase Module: Crashlytics
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