-
Notifications
You must be signed in to change notification settings - Fork 2.2k
🔥chrono file not found, firestore , gRPC-C++ #1984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
for anybody that come here try this fix firebase/firebase-ios-sdk#1916 (comment) it worked for me |
@CyrusZei I have faced the same issue. |
I made a PR to the repo so if anybody else is stuck follow the guide I made https://github.com/syanbo/react-native-agora/blob/master/docs/v2/ios.md |
Hello 👋, to help manage issues we automatically close stale issues.
|
i'm running into this issue too, though i don't have the search path issue. So I can't remove the recursive search path in the pod directory. I had to use the old build engine on one machine. |
The original poster resolved the issue, so this should not receive further unrelated posts, please open a new issue following the template if there are more problems |
@eggybot Any luck on your end? I've been struggling with this issue too. |
@riordanpawley no luck and still getting this issue. |
@eggybot TLDR: Working but not certain why. I think the important parts are make sure you use react-native-firebase 5.4.3 and add the react-native.config.js file to your react-native-firebase node modules folder. platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'dogg' do
# Pods for dogg
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'Stripe', '~> 14.0.0'
# Pods for dogg
pod 'Firebase/Auth', '~> 6.3.0'
pod 'Firebase/Core', '~> 6.3.0'
pod 'Firebase/Firestore', '~> 6.3.0'
pod 'Firebase/Database', '~> 6.3.0'
pod 'Firebase/Functions', '~> 6.3.0'
pod 'Firebase/Messaging', '~> 6.3.0'
# post_install do |installer|
# # react-native-firebase need some adjustements with use_frameworks!
# rnfirebase = installer.pods_project.targets.find { |target| target.name == 'RNFirebase' }
# rnfirebase.build_configurations.each do |config|
# # react-native-firebase HEADER_SEARCH_PATHS are not good
# # This is to avoid the error
# # 'Firebase.h' file not found with <angled> include; use "quotes" instead
# config.build_settings['HEADER_SEARCH_PATHS'] = '$(inherited) ${PODS_ROOT}/Headers/Public/**'
# # injecting `s.static_framework = true`
# # (should be in RNFirebase.podspec but since it's not, the code below is doing the same behavior)
# config.build_settings['MACH_O_TYPE'] = 'staticlib'
# end
# end
pre_install do |installer|
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
# to avoid
# [!] The 'Pods-ADM' target has transitive dependencies that include statically linked binaries: (FirebaseCore, FirebaseInstanceID, FirebaseDynamicLinks, and FirebaseMessaging)
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
use_native_modules!
end "dependencies": {
"@ptomasroos/react-native-multi-slider": "^1.0.0",
"@react-native-community/slider": "^2.0.0-rc.1",
"formik": "^1.5.7",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"prop-types": "^15.7.2",
"react": "16.8.6",
"react-instantsearch-native": "^5.7.0",
"react-native": "0.60.0",
"react-native-firebase": "5.4.3", // IMPORTANT
"react-native-formik": "^1.7.6",
"react-native-gifted-chat": "^0.9.6",
"react-native-google-places": "^3.1.1",
"react-native-google-signin": "^2.0.0",
"react-native-maps": "https://github.com/react-native-community/react-native-maps.git", // necessary for a fix that isn't in the release yet
"react-native-modal-datetime-picker": "^7.5.0",
"react-native-paper": "^2.16.0",
"react-native-prompt-android": "^0.3.5",
"react-native-router-flux": "^4.0.6",
"react-native-vector-icons": "^6.5.0",
"react-redux": "^7.1.0",
"react-redux-firebase": "^3.0.0-alpha.12",
"recompose": "^0.30.0",
"redux": "^4.0.1",
"redux-firestore": "^0.8.0",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"tipsi-stripe": "^7.5.0",
"yup": "^0.27.0"
}, react-native.config.js const path = require('path');
module.exports = {
dependency: {
platforms: {
ios: { podspecPath: path.join(__dirname, 'ios', 'RNFirebase.podspec') },
android: {
packageImportPath: 'import io.invertase.firebase.RNFirebasePackage;',
packageInstance: 'new RNFirebasePackage()',
},
},
},
}; |
Issue
I have looked at the two other issues that have been posted here but with no luck and that is why I am posting this issue.
as soon as I add
pod 'Firebase/Firestore', '~> 5.15.0'
to my PodFile I get the "chrono file not found" I did read that is has with Time.h.
I am using firestore in my app and I need that.
It has to do with the
gRPC-C++
that is beeing added.Have been trying to figure this out for 3 days now with no luck.
If I remove the firestore from my podfile it builds and everything works just fine.
Is there a version that I can downgrade to where firestore is not depending on the
gRPC-C++
time.h thing ?Project Files
iOS
ios/Podfile
:# N/A
AppDelegate.m
:Android
android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
macOs Mojava v10.14.3
N/A
N/A
xCode v 10.1 (10B61)
React Native
version:0.58
React Native Firebase
library version:5.15.0
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A
-----EXTRA INFO
the build error I get

Framework search paths
Header search paths
Library search paths
Link binary with libraries

Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on TwitterThe text was updated successfully, but these errors were encountered: