'chrono file not found'
Issue
Whenever I try to run the app in iOS it fails and gives me this error:
Environment
- Application Target Platform:
iOS
- Development Operating System:
macOS Mojave 10.14
- Build Tools:
Xcode v10.0 iOS 12.0
React Nativeversion:
0.57.1
React Native FirebaseVersion:
5.0.0
FirebaseModule:
N/A
- Are you using
typescript?
Yes
Reverting back to 4.3.8 worked
Did Anyone get this working? reverting back to 4.3.8 doesnt work.
@rishavcn you need to run Clean build folder after package install
I just fixed it. Changing file->workspace settings->build system to legacy build system
On Sat, 20 Oct 2018, 16:04 David Spohr, [email protected] wrote:
@rishavcn https://github.com/rishavcn you need to run Clean build folder after package install
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/invertase/react-native-firebase/issues/1610#issuecomment-431574383, or mute the thread https://github.com/notifications/unsubscribe-auth/AoMPNK5ToQjw1KtKVqD4QFBJfUX_HMteks5umxFPgaJpZM4XkJVl .
I was using Xcode 9.0.1, did not receive this error. But when building in App Center, I did even tough I've selected to build with Xcode 9.0.1.
Xcode 9.0.1 does not have the 'Legacy build system' setting. I've upgraded Xcode to version 10, and I got the 'chrono' file not found error. Changed the build system to Legacy, error gone.
Changing the build system to legacy build system worked for me as well, however, I'm not too sure if this should be a permanent solution.
I had the same issue. I deleted the whole project, cloned it from github => yarn and pod install. That worked for me.
all of a sudden happening here too, "react-native-firebase": "^5.0.0",
legacy build system is temporary, but not a long term solution.
Having the same issue as @mcoevert. I'm able to build locally using legacy build system, but when using AppCenter build fails on this issue. @mcoevert - did you find a solution?
@danielmhanover no, I figured it would work but just tested and the build still fails in AppCenter on the same error, even though note: Using legacy build system is being used. I'm able to develop, but not able to release.
I was able to fix by removing some dependencies I wasn't using, namely Firestore, DynamicLinks, and CloudConfig.
Removing some dependencies as @danielmhanover suggested worked for me! Oddly, I was able to put the dependencies back and now it still works... Have no idea why.
Removing the Firestore, DynamicLinks and CloudConfig modules from Podfile did allow for build to complete. Putting dependencies back afterwards and running pod install again, then running another build, restored the build issues.
I have the same issue. Oddly enough was able to solve this by running multiple cleanups as suggested above. However now that I need to build the app for release I have ran into the same problem again. I cleaned the pods, npm, build etc. Re-ran every install script and its still giving the same error.
Legacy build system solves the issue for me as well. Many thanks! Any update on how to avoid this?
Seems to me that Firebase Firestore is causing this issue.
Almost everyone takes out Firestore here and I took out firestore and it worked fine. Please fix this issue as I am using firestore for my project.
The seems to be caused by the combination of gRPC-C++ and xcode 10. For me, as a workaround I have downgraded to Firestore (and everything else) to 5.7.0 because it doesn't depend on gRPC-C++. Was a workaround I found on https://github.com/firebase/firebase-ios-sdk/issues/1916 I'm only getting started with using this, so I don't know if it'll suit your use case... other people have suggested other solutions, none have worked for me
downgrading to 5.7.0 appears to work - but I am nervous that its not really compatible with RNFirebase 5
I had similar issues (9 build errors in total) while using pod 'Firebase/Core', '~> 5.12.0' and pod 'Firebase/Firestore', '~> 5.12.0'. It didn't matter which build system I was using the errors still persisted. All of them were gone after I removed Firestore from the Podfile, ran pod install build again (which succeeded), added Firestore back to the Podfile, ran pod install again and build again.
I have absolutely no idea what the issue is and why removing and re-adding Firestore seems to solve it. All I know is that it is working now and it looks like the issues are caused by Firestore.
Additional details:
"react": "16.6.3",
"react-native": "0.57.5",
"react-native-firebase": "^5.1.0",
"react-router-native": "^4.3.0",
Thanks @rodrigoehler, this worked for me too:
- remove
Podsfolder andPodfile.lock - remove Firebase pods except
Firebase/Corefrom your Podfile, in my case there were:
pod 'Firebase/Auth', '~> 5.9.0' pod 'Firebase/Firestore', '~> 5.9.0'
- run
pod install - clean build folder
- build
- add Firebase pods back
- run
pod install - build
Getting an identical build error. I tried disabling header maps on the project target, but to no avail. My build error includes:
'chrono' file not found (time.h)
... (1-4 are just RNFirebase including files which lead to 5) ...
5. In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/wchar.h:91:
6. In file included from /ios/Pods/Headers/Public/gRPC-C++/grpcpp/support/time.h:22:10
wchar.h:91 is #include <time.h>. From what you guys have said, I guess this conflicts with the gRPC-C++ time.h definition.
I also tried turning off header maps for firebase core, and then for the entire pods project, but that didn't work either.
Using the legacy build system surprisingly does work, which sucks because I know it's not a real solution to the problem.