So this is the problem I'm having. Initially after the first one or two cocoapods install/updates everything was working fine. Then on subsequent updates I started getting duplicate dependency files which makes the build fail and screws with live preview in swiftui. There may be other issues but this seems to be the main one from my point of view(though let me know if you think there are other issues). I have included a screenshot of the pertinent errors
These are the pods I'm currently using:
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
This is very frustrating as I cannot continue to work on the project until this is resolves and it continues to happen. I tried doing pod deintegrate, deleting podfiles, podfile.lock and the xcworkspace and then re-installing with pod init and pod install but that didn't fix anything.
Would try these steps first.
clean the project
delete derived data
pod deintegrate
pod install
"Then on subsequent updates I started getting duplicate dependency files which makes the build fail"
If you're seeing issues when updating a pod, then you may want to set the pod to a specified version in your Podfile.
I recently started my first Xcode project (I am really new to app development) and I accidentally deleted a pod folder and moved it to the trash when I meant to simply delete the reference. I removed the Pod files from the left side bar out of the "Pods" folder and I was left with a pretty nasty set of errors.
The project no longer builds, I am no longer able to run "pod install" using terminal without getting errors, and I am worried that my project is completely trashed now after an immense amount of work I have put into the application and the pod created workspace. If you have any ideas on what to do, please offer all the help you can as I am terrified that I have corrupted the whole project.
Wanted to send an update for all of those who have a similar issue: I have resolved the issue and everything seems to be working again.
What I did to resolve the errors
I reinstalled Cocoapods using Terminal with the command $ sudo gem install cocoapods
Once it reinstalled, I ran the command pod cache clean --all (This removed all pod cache files)
Next, I ran the command pod deintegrate to remove all pod files
Once all pod files were removed, I ran the command pod install
After completing these steps, all the issues were resolved
I hope this helps someone else who may have similar issues due to improperly removing pod framework and module files or those who's
This article will help detail all the steps for installing Cocoapods for those who may be confused by my explanation to fixing these specific errors:
https://guides.cocoapods.org/using/getting-started.html
I have deleted RoundCornerProgress Pods from Pods library in Xcode but after that when I run the project it shows this error. How can I resolve this problem?
Try using pod install --no-repo-update command.
Remove the pod that you don't need from your pod file and then run this command.
This command will essentially remove the unwanted libraries without affecting other dependencies. Clean and build your project after doing this and it should work fine.
Use pod deintegrate to remove all traces of CocoaPods from the Xcode project.
After updating react-native-firebase to 5.0.0 I then had to update to react-native 0.57.1
After updating react native when I go to do react-native run-ios I get a version mismatch error. saying that the javascript version 0.57.1 is different from the native version 0.56.0 I have screenshotted the error below.
When I try to build the ios project in Xcode I 34 errors related to rnfirebase.
I'm sorry if my question is a bit ambiguous but I'm really not sure where to start or where to go, so if someone could point me in the right direction I will be able to better adjust my questions and provide any necessary details.
UPDATE: ADDED PODFILE
I get this error after running react-native run-ios
Thank you for any help
According to the Release notes (https://rnfirebase.io/docs/v5.x.x/release-notes): change your podfile to this.
pod 'Firebase/Auth', '~> 5.9.0'
pod 'Firebase/Core', '~> 5.9.0'
pod 'Firebase/Firestore', '~> 5.9.0'
pod 'Firebase/DynamicLinks', '~> 5.9.0'
pod 'Firebase/Storage', '~> 5.9.0'
After updating package.json depencencies, make sure you run a npm install from your project root, and a pod update from your ios directory.
Also, make sure that no Metro bundler is running while doing that, and no IDE is opened - it could keep an old cached version of your node modules. (hence the watchman watch-del-all command suggested by RN in your screenshot)
Thank you for all the answers and comments, unfortunately, none of them worked for me.
Ultimately what lead me in the right direction was a comment from #Vinzzz:
if ios build fails, then the ios app you can run in your simulator is outdated, so the red screen error is irrelevant, fix the build first
I went back to Xcode, tried to decipher the 34 errors,
I found that they all seem to be coming from rnfirebase, I tried to search SO for answers how to fix them, but couldn't fix them.
I ended up just completely removing rnfirebase from the ios project and mostly from the reactnativejavascript project but kept it in the Android project as I had no problem there.
I think first I found on SO, to remove the pods in the pod file then do:
pod install
which removed the rmfirebase pods
I then deleted any reference to rnfirebase that was left in project, using search project.
After that I removed rnfirebase from package.json, npm install to remove it from modules,
and it worked ! all errors gone, build succeded! after commenting out some references to rnfirebase in my logic, I ran run-ios and it worked too! no react-native mismatch error.
I have since updated everything and re-installed rnfirebase and its working again! and now everything is on the latest versions where it wasnt before.
Thank you to everyone and especially to #Vinzz for pointing in the right direction, took me 8 days to get over this! I tried to fix the problems instead of just uninstalling & re-installing thats why it took me so long. cheers
i renamed my xcode project and delete all pods (pod deintegrate) and then i install pods again but now i get this error:
this is output from terminal after pod install:
My podfile:
How is it possible that my app doesnt work anymore with this new name? Can someone help me fix this issue?