Getting an error after initial firebase setup in Xcode project - ios

Getting this error, how do I totally get the firebase out of my Xcode project? I don't really need to know the right way of getting it back in, but how do I fully get it out? Thanks! Here's a screenshot of my error.

If you are using cocoapods, just delete this pod 'Firebase/Core' line from your podfile and again update pod from terminal.

Related

dyld: Library not loaded Xcode11

When I tried to install my project on my phone there is an error : "dyld: Library not loaded:" and in the file "dyld`__abort_with_payload:" the thread 1. But on simulator everything is good.
So I tried to remake the same project with test step by step. At the first it's working but when I install pods (because of Firebase) the error appear. (I install the app on 2 devices, and they crashed at the same time. Without update.) (It was working very well there is 4 days.)
I don't know if it's because of my Apple certification iOS or it's about firebase with the update to iOS 13.3.1 ? Or something else ?
I tried many things on different topic.
Someone has resolve this issue ? :D
Looks like you can't use your free development account with frameworks on iOS 13.3.1, user "Valdani" in the Apple Forum got it to work by commenting the use_frameworks! line in the podfile then making a "pod install" and a "pod update"
I solved the issues.
I remplace use_frameworks! by use_modular_headers! in the pod file
Thanks for help

SIGABRT Error due to FirebaseApp.configure()

Whenever I download the Google info plist file to my project and put it just under the infoplist, use pod init, set the pod 'Firebase/Core' etc., add the configure function to my AppDelegate after importing Firebase, I get the error "Thread 1: signal SIGABRT". I've tried everything, created another simple project, which was treated the same way as the main one and I still got this error, which signifies that the origin of the error comes from "FirebaseApp.configure()". Please, help me, I'm literally dying.
Happened to me too but my issue was not the target.
How i solved my error was that i ensured that the app is part of a firebase project. Downloaded the latest GoogleInfo.plist file and replaced the one that was already in the project and it no longer crashed again.

Can't find Firebase's PhoneAuthProvider class

I'm working on adding a phone authentication login to my app, but my xcode just can't find the PhoneAuthProvider class. I have included
import Firebase
import FirebaseAuth
and the right pods installed
pod ‘Firebase/Auth’
pod ‘Firebase/Database’
pod ‘Firebase/Core’
Any idea to why it's not available for me?
Apparently it was because my Firebase pods were outdated, after updating them to the newest version I was able to use the class.
To update your Firebase pods, go to terminal and type in
pod update Firebase/Auth
I'm gonna leave it here as I've found a few similar questions without any answers.
It's a problem in creation or config project or app. You need just need go:
project-> add another app
and redo all process that you can create app.
In my case that worked.
Note: don't create another project because Firebase only provide 3 project to create.
You need to go to Project> Clean Build Folder. Build the project. This fixes my problem.
In my case I had to close whole XCode and then open it again, and everything worked fine.

Error reason: unrecognized selector sent to instance after add library 'Google-Mobile-Ads-SDK', '~> 7.8'

In my project an additional library will be added to work with advertising.
error show when after I add library 'Google-Mobile-Ads-SDK', '~> 7.8' with pods
version Xcode 8.2.1
Deployment target 9.0
I created a test project that added this library to it, everything works there
Crash occurs in the ViewController after the viewWillAppear method
viewDidAppear
don't call
my Podfile
my error
All tried nothing to help and decided to create a project and quietly migrate and constantly build the project in order to understand what's wrong, so transfer the data from the introjection to a new project and again the same crash appeared.
It turned out that in this case LSApplicationQueriesSchemes string =" whatsapp ".
If suddenly someone will encounter this problem, then "climb" into the info sheet and check the item that I indicated above. All good.

Error setting up Firebase in Xcode

I have tried to set up Firebase to work on Xcode using both the quick setup instructions and the manual alternate instructions on Firebase website.
When I used CocoaPods and followed the instructions on the quick setup page, I was able to import Firebase, but I was not able to reference Firebase inside the class. I got the error: Cannot call value of non-function type 'module' xcode
When I tried to set it up manually, I was not able to import or reference Fire base and I got the error: No such module 'Firebase'
I had the same issue when updating my project to the new version of Firebase. A TON of changes were announced at Google I/O and thus there is a good amount of updating to be done.
It sounds like you might be using the old version of Firebase with the new SDK. You should do everything with Firebase 3.0. Hence var rootRef = Firebase(url:"https://<YOUR-FIREBASE-APP>.firebaseio.com") will now be var rootRef = FIRDatabase.database().reference().
Take a look at the setup guide at: https://firebase.google.com/docs/ios/setup#prerequisites (be sure you aren't looking at the legacy docs!). If you want to convert code from the old version of Firebase to 3.0, check out the Upgrading tutorial: https://firebase.google.com/support/guides/firebase-ios#get_a_database_reference_numbered
You should try to manually edit your podfile to something like:
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
I use these directives to get it working with Xcode 7.3.

Resources