Library not found for -lFirebaseCore - ios

This might be a duplicate but the other threads solutions have not worked.
I have taken over a react-native app and am able to build the app for android on windows but the iOS version has this issue of firebasecore not found.
The reason firebase is now appearing twice is because i followed a guide how to deintegrate pods and reinstall and it duped them.
When I click the firebasecore file i can check the path its looking in
It doesnt exist in there.
I have tried to deintegrate the pods and reinstall, update them too.
Open the project using the workspace file.
Delete and clone the repo again to start fresh.
Most of the other solutions too, yet nothing works.
If any other information is needed I can try to provide it!
Thank you for reading!

Related

'Flutter/Flutter.h' file not found iOS XCode but it worked before

I tried every possible solution presented on the internet regarding this issue. The weird thing is that running the app worked yesterday and it successfully ran on my phone and I was able to Archive it so I can publish it. But when I checked today to take mockup screenshots, the build gives the Flutter.h not found error.
I tried
pod deintegrate, pod install, pod update, etc
Removing cache
Moving project files to another project
Removing podfile
flutter clean, pub get, upgrade, doctor, etc
Removing Flutter.podspec
The only solution I have yet to try is updating XCode and this is because I don't have enough storage for some reason (I have 40GB and update is 12GB)
The full error:
Lexical or Preprocessor issue
Flutter/Flutter.h file not found
In file included from Users/name/Developer/projectName/ios/Runner/GeneratedPluginRegistrant.m:7:

Problem with Google Maps and Cocoapods and XCode

I am not a cocoapods expert so I'm a little stumped by this. One of my projects uses Google Maps and Google Places, and I did a "pod update", which led to "Module Not Found" errors for Google Maps. The build folder looked odd, so I created a new project, used the same podfile (except for target/project settings) and did a pod install.
In the image below, my big/real project is in the background and it is obvious that the GoogleMaps/Base group/folder is missing entirely, when compared to the foreground project.
Any suggestions on what could be going wrong or how to fix this? I'm currently reviewing how to uninstall/re-install pods.
TIA
It would be nice to know how/why things got wonky, but doing the following steps seems to have cleared out the issue by removing the pods from the project, then re-adding them:
pod deintegrate
pod install

Error : The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation

I am not using Pods. But accidentally I installed it and deleted all folders from my project repo.
After that , when compiling shows this error message.
I searched podfile.lock file in my project folder but cannot find.
Then why such error
Help me to solve it.
There are probably some CocoaPods related files and rules left over. You can use the pod deintegrate command to remove CocoaPods from your project. See https://guides.cocoapods.org/terminal/commands.html#pod_deintegrate
Make sure you have your project in version control or backed up before doing this, so if something goes wrong you can always roll back.

Admob pods do not work after firebase integration

As you may be aware of it, Google now switch to Firebase instead of Google Analytics. So I tried to integrate it to my current working project. Admob is also integrated to my project with Pods.
I have followed Google's document and created a new pod and re-install with firebase. After it , now my project does not build.
Here is error
Use of unresolved identifiers "GADBannerView"
Try switching your imports to just:
#import GoogleMobileAds;
Everything should work as it was before, but using the module map is a great a way to pull in the headers rather than directly importing.
I have resolved it with:
-delete all pod related files from my project folder
-pod init
-re-add my required pods
-pod install
So I get this error as well with GADRequest errors even on Google's sample Banner project.
I fixed it with #Ian Barber's suggestion with #batgun's answer, of updating cocoapod version to 1.0.0 by running
$ [sudo] gem install cocoapods
https://guides.cocoapods.org/using/getting-started.html
then deleting all cocoapod items then install them again.
When I was in cocoapod version lower than 1.0.0, when I run pod install again, I still had errors, like "Use of unresolved identifier 'GADRequest'"
I retyped the whole thing and worked perfectly. When I was still not in cocoapod 1.0.0 version (i think it was 0.39 version), I can only find GADRequestError and not GADRequest.
When I retry extracting the original project now, do pod install and run the app, It doesn't throw any errors now.
I believe this has something to do with cocoapod version but it is not in google admob instruction to update it on.
I was trying to figure this out since the day of the release and losing hope for firebase because it was the sample basic banner project and it doesn't work!
VERIFIED!
I can verify it has something to do with cocoapod version.
I was trying to do the Google's Codelab 'FriendlyChatSwift' practice project since the release and throws a bunch of errors after running pod, not finding bunch of classes.
Steps:
$ [sudo] gem install cocoapods
I deleted the existing downloaded pods and related (ProjectName.xcworkspace, PodFile.lock, /Pods)
Run pod install
Build and Run of the project
It worked perfectly. I also tried running the project before doing this steps and It had bunch of errors.
I had this same issue and this helped me get setup the way I needed it but I don't think anyone touched on my exact issue. Thought I'd provide that just in case someone was looking.
After I cleared everything out and ran pod init I noticed that the generated pod file has use_frameworks! set in it. Once I added that everything was solved. Stupid mistake on my part since you need use_frameworks! for swift projects but leaving that out lead to a lot of random not found errors showing up and going away at random. Hope this helps someone.

CocoaPod : Unable to remove the Pod from project

I have a xcode (iOS) project in which i am cocoapods.
I have couple of pods installed:
SwiftHTTP & SwiftyJSON.
Now for some reason I decided to try another pod namely EZAlertController. Nothing wrong with the pod. But i decided not to use it. So I need to uninstall this pod from my project.
So far whatI have done:
remove pod 'EZAlertController', '0.3'from the podfile
run pod install which gave me the message of
Removing EZAlertController
No EZAlertController folder in the Pods folder either. So far so good.
Now i closed the xcode and reran the .xcworkspace file.
clean & build routine - all good - Again
P.S.(also tried pod update)
The Problem:
I am still able to import EZAlertController into the project and run. What is really annoying is that I forgot to take a git snapshot. So can't just revert back without loosing considerable amount of code.
Any idea on how to completely get rid of EZAlertController even after removing as there is still some linking with xcode :(
Try to clean the project: Product -> Clean and also Product -> (hold option key) Clean Build Folder
Maybe deleting the derived data could resolve your issue
I wouldn't remove the pod. I've had this problem before. I tried blowing away all the pods but continued to experience the problem. What I would do is blow away all the pods, reinstall Cocoapods to the project, then try installing it again.
Alternatively you can add the framework you need manually.

Resources