SIGABRT Error due to FirebaseApp.configure() - ios

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.

Related

Firebase connection is not working with my IOS App

Hey I wanted to connect Ios App to Firebase, I did everything like in the documentation on the website but when I do the last step and want to run the App to connect with the firebase server, it is crashing and this message comes: Thread 1: Exception: "`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/."
But Why? I have it downloaded and integrated into my project, everything looks like in all the tutorials but it's not working...
And when I open the old blue Xcode project it is throwing this error:
Here are the references of the new white project, you can see that I have everything:
I would be really thankful if someone could help me! I just want to go ahead and work on the app:(
The error clearly says that it could not find a valid GoogleService-Info.plist , rename your file from GoogleService-Info-2.plist to GoogleService-Info.plist and then it should work.

Getting an error after initial firebase setup in Xcode project

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.

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.

New to Firebase and swift. Having trouble connecting Firebase to Xcode

So I am new to swift and xcode so please have mercy. So basically I am trying to connect my project in xcode to Firebase. I am using a blank single view application template and have not bothered with adding any buttons or more view controllers. I am just testing it and trying to connect it to Firebase. So the problem I am having is is the app succeeds in compiling, but then as soon as the application opens in the simulator, it gives me a Thread 1: signal SIGABRT error. I don’t know what I am doing wrong. I have followed all of the installation instructions correctly. I went to Firebase and configured the app with the bundle indentifier. I added the Google-Service.plist file into xcode. I succesful installed all of the pods into my project. I go into the app and add
import Firebase
FIRApp.configure()
into the delegate swift file. I save the project and close it. I open the app workspace file (the one it recommends to open) And then without adding anything to the project or adding any user interface options, I immediately run the project, it says build succeed and then instantly crashes and gives me the Thread 1: signal SIGABRT error. Does anybody have any ideas of what this is? I don’t know what I am doing wrong. I can’t move forward with swift and firebase if I can’t even configure it correctly. Can you please figure this out?
Here is the description of the error it gives me:
TestAppWithJack[71791] <Error> [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
2017-01-14 17:06:19.456 TestAppWithJack[71791:2160021] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '[FIRApp configure] could not find a valid GoogleService-Info.plist in your project.
Did you make sure that the google plist is specifically called GoogleServices-Info.plist? If it isn't specifically that name, then it won't work.
Where did you put GoogleServices-Info.plist? If you dragged it to the wrong place, that could be why it was giving this error because it cannot find the file... Drag GoogleServices-Info.plist under your info.plist it should be fine then.

App Delegate crashes because of Firebase initialization

I am getting this error that's causing the AppDelegate to crash
Terminating app due to uncaught exception 'com.google.greenhouse', reason: 'Error Domain=com.google.greenhouse Code=-102 "Unable to correctly configure subspec Analytics" UserInfo={NSLocalizedFailureReason=Tracking ID must not be nil or empty., NSLocalizedDescription=Unable to correctly configure subspec Analytics}'
I have followed the Firebase guide from here
What can be the reason?
Also I don't intend to use google analytics as for now. Any fix?
EDIT:
Note: I have removed the IDs and the Keys for this screenshot
The accepted solution was to remove Google Analytics.
But you actually can have both Firebase and Google Analytics.
The solution I found was to add TRACKING_ID into GoogleService-Info.plist
for example, add this:
<dict>
<key>TRACKING_ID</key>
<string>UA-XXXXXX-X</string>
I asked the Firebase team on this issue and they have responded.
Things you can check if the issue still persist.
Check to see that the GoogleService-Info.plist file is at the correct location i.e at the project root.
Check your IS_ANALYTICS_ENABLED in the google plist. Try changing it.
Try removing pod 'Google/Analytics'.
Add -FIRAnalyticsDebugEnabled to get more debugging information.
My problem was solved by removing Google/Analytics pod.
We had the exact same error and solved by removing
pod 'Google/Analytics'
from Podfile.
In our case, we had been using GA and switch to Firebase + TagManager Solution, but just forgot to remove 'Google/Analytics' from Podfile.
(Even we remove 'Google/Analytics', TagManager installs GoogleAnalytics for dependencies but errors are gone. Curious but it works...)
If would like to have both Google Analytics and Firebase. Please add two lines of code in GoogleService-Info file. Hope it will help
<key>TRACKING_ID</key>
<string>UA-123456789-0</string>
Enable/Disable Services That You Want in my Case i only need Analytics so i set YES in IS_ANALYTICS_ENABLED and Other services set to NO.
Source
Delete From Podfile --> pod 'Google/Analytics'
If it was not the location of your googleservice-info.plist file. Check your IS_ANALYTICS_ENABLED in the google plist. Maybe try changing it to the opposite of what it currently is.
Also, you can add this launch option to get more debug info. Maybe it will help.
Product -> Scheme -> Edit Scheme -> Arguments passed on launch:
-FIRAnalyticsDebugEnabled
None of the solutions suggested here worked for me. The only thing that did was disabling Firebase Analytics, by adding "FIREBASE_ANALYTICS_COLLECTION_ENABLED" (Boolean) to GoogleService-Info.plist and setting it to "NO" (taken from: https://firebase.google.com/support/guides/disable-analytics)
Make sure the GoogleService-Info.plist file is at the correct location i.e at the project root.
I have added a screenshot of my project for you to check for reference.

Resources