-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Build error FirebaseInvites.m ÷÷ #2269
Comments
npm i react-native-clean-project && npx react-native clean-project-auto Good luck :-) |
@mikehardy Did not help for me. |
sorry, there is something wrong with your local environment though. CI builds the thing from scratch, it works. Those files are gone but no longer included, so you've got some sort of local file staleness issue going on. https://github.com/mikehardy/rnfbdemo shows it working even |
@mikehardy Thanks for reply but as i can see https://github.com/mikehardy/rnfbdemo uses old firebase pod versions '5.20.2' new documentation requires '6.2.0' after 5.5.0 update. Maybe you can get same error after updating pod versions? |
@GoktuqCan So I encountered the error again, and trying I cleaned out build and build folder cache in Xcode (https://macpaw.com/how-to/clear-xcode-cache), then unlinked RNFirebase using |
Similarly - I updated rnfbdemo to 6.3.0 pods (current) and it built fine. I have some unrelated thing popping up there now but it wasn't an invites build error any more |
Though if you unlink, you should move your Podfile out of the way before you relink, or the link will try to link react-native-firebase via Pods which is not recommended for v5 - subtle things these iOS builds! |
@ealmiladi Thanks for reply and link you provide. 1st, 2nd, 4th steps worked for me. |
Would you believe this bit me tonight!? My own release 🤣 I dislike GUI based solutions because automation is reproducible. So I found this set of commands to clear the Xcode build cache, and when I added it to my build (which already nukes ios/Pods and ios/build and node_modules) it did the trick: killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/* https://gist.github.com/maciekish/66b6deaa7bc979d0a16c50784e16d697 |
I must say by the way, thank you @GoktuqCan and @ealmiladi for sticking with this one and figuring it out, it helped me personally and if the linked react-native-clean-project issue is resolved, this will be one of those “solved for everyone forever” things. 💪 |
Everybody wins, love it! Thanks for following up. |
This is what open source all about, thanks. Also thanks for this amazing project. |
Does anyone else still have this problem? I tried everything listed here and nothing works. XCode still tries to build RNInvitations even thought they were removed in RN Firebase 5.5.0: |
I no longer have this problem, and it does not show up in clean builds (CI, my rnfbdemo github repo, the test project here etc). Sorry |
Also had this problem. Doing an Xcode clean (Cmd+K) and deleting the |
@pbassut you may like the react-native-clean-project package, it doesn't just clean the build folder but cleans some secret-ish Xcode folders ("DerivedData") that can trip you up when you least expect it - after you already thought you cleaned Xcode out (as happened to others here). |
yeah. I checked it out when you mentioned it above. It looks very useful since I immediately blame derivedData and alike when my build acts funny. |
I think it's mostly that people just don't know about it :-). I've personally sent a couple PRs to it though, the maintainer is solid and the code is fine on personal inspection. So now I sell it to everyone - it's always my first step for "my build broke" personally or anyone that asks, and has a pretty high success rate. Cheers! |
i did that then my project was broken yet, thank you so much |
Issue
I'm getting a build error after upgrading to 5.5.0.
error: Build input file cannot be found: '/Users/blah/Code/react-native-firebase-starter/node_modules/react-native-firebase/ios/RNFirebase/invites/RNFirebaseInvites.m'
I see FirebaseInvites has been removed in favor dynamic links in this version. How do I rid myself of these old references?
Project Files
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:The text was updated successfully, but these errors were encountered: