Fabric is crashing after latest update (1.9.0) on [Fabric isCrashlyticsCollectionEnabled] - ios

After running a pod update my app now crashes on launch when it hits:
[Fabric with:#[CrashlyticsKit]];
The error returned is:
2019-01-11 14:07:15.935040+0000 Leave[26155:181825] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[Fabric isCrashlyticsCollectionEnabled]: unrecognized selector sent to class 0x10b8354c8'
I am using Xcode10.1, in a project built in Objective-c but with some Swift tests and cocoapods.
I already have the API key in my info.plist and have a run script in my Build Phases.
Before I roll back to the previous version, is there any thing I can try to fix this?

Apparently you should use [Fabric with:#[[Crashlytics class]]]; (as per https://fabric.io/kits/ios/crashlytics/install).
By the way, both Fabric and Crashlytics are now part of the Firebase framework, so I am not even sure this method still works. I'd personally suggest you migrate your project to Firebase to keep it working once the plug is removed from the old Crashlytics environment

For me downloaded sdk from here
again adding it project worked. hope this may help someone.

Related

Firebase runtime crash

I have added the Firebase SDK manually to my project (can't use cocoapods due to configuration issues).
Using the following frameworks:
FirebaseCore.framework
FirebaseInstanceID.framework
Firebasemessageing.framework
In the AppDelegate I have imported this following:
#import "Firebase.h
#import <FirebaseInstanceID/FirebaseInstanceID.h>
#import <FirebaseMessaging/FirebaseMessaging.h>
And then I reference the API:
[FIRApp configure];
All is fine when I build the project. However as soon as the app hits the Firebase SDK API - I am getting the following crash:
Error message in the console:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSData gtm_dataByGzippingData:error:]: unrecognized selector sent to class 0x10553f168'
I have added all the required frameworks I can think of, yet still getting this issue.
Make sure you've added the GoogleToolboxForMac library to your project and you've added -ObjC to Other Linker Options in Build Settings.

Firebase app invite crashing on swift ios

I've added firebase app invites in my swift based iOS application. I have followed this complete instructions however, it has been crashing on invite.open() line while showing invite dialog.
The error is:
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** setObjectForKey: object cannot be nil (key: GINInviteResources.bundle)'.
Did anyone managed to make it work?
After digging for 2 days what I found was FirebaseInvites.framework seems to have resource dependancies for GINInviteResources.bundle and GPPACLPickerResources.bundle.
Somehow, pod was not including it in to my project.(Still could not find why) but adding this two dependencies manually in to my target worked like a charm.
PS: Adding this answer to save someone's effort.
Right, I too faced this.
Download framework SDK zip from https://firebase.google.com/docs/ios/setup and get those bundles from \Invites\Resources\..

UIImageView | unrecognized selector sent to instance | Xcode 6.4 | iOS 8.4

I'm new at Xcode, and my task was to migrate the code from iOS 6.1 to 8.4, but there where so many deprecated methods. I solved them (I hope so), but now I got a new problem.
The code I'm using is this one:
[self.clientImageView sd_setImageWithURL:[NSURL URLWithString:_client.imageURL] placeholderImage:[UIImage imageNamed:#"placeholder.png"]];
And I get this error:
[UIImageView sd_setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x7fbe937a88b0
And finally, I get this:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView sd_setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x7fbe937a88b0'
Thank you so much.
If you imported the framework and set up all of the right flags, try to delete the contents of this folder ~/Library/Developer/Xcode/DerivedData and fun a clean build. It should help.
Just add -ObjC in other linker flags and added sdwebcache.a in link libraries
By the Collaborator ofSDWebImage
See https://github.com/rs/SDWebImage#add-linker-flag. Correctly
setting the flags should take care of the issue. BTW: I strongly
recommend you guys switch to CocoaPods, that way those issues will
never arise.
Copy and paste all files from the library in your project. I tried everything suggested and nothing worked. At the end, simple copy paste do the work.
Also, I must say that I didn't have this problem on the new project, just in existing one. On the new project everything worked just fine.

Urban Airship crashes when calling takeoff

Upgrading to UrbanAirship 3.0.0 with Xcode 5.0, I'm getting an error when calling this code:
[UAirship takeOff:config];
The error is
+[NSJSONSerialization stringWithObject:]: unrecognized selector sent to class 0x3b2ca9fc
2013-09-19 15:02:31.981 [178:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSJSONSerialization stringWithObject:]: unrecognized selector sent to class 0x3b2ca9fc'
This doesn't seem to appear when setting the key "inProduction" to "YES" in the AirshipConfig.plist, which makes sense as calling takeOff: populates the instance of UAirShip.
It seems to be due to the category NSJSONSerialization+UAAdditions.
Any help on this one?
Thanks
To fix this issue, you must include "-ObjC" flag in "Other Linker Flags" found in your projects build settings.
UAirship library 3.x now makes use of Objective-C categories so this flag must be set to avoid the runtime exception.
Details on the issue can be found here:
https://developer.apple.com/library/mac/qa/qa1490/_index.html
Updated the docs:
http://docs.urbanairship.com/build/ios.html#build-settings
http://docs.urbanairship.com/topic_guides/ios_migration.html#linker-flags
Doesn't seam to be happening with the source: https://github.com/urbanairship/ios-library
You must have included both the libraries:
libUAirship-3.0.0.a
libUAirship-iOS5-3.0.0.a
You have to use either of the library for respective iOS
After looking at different solutions, it turns out that this fixes the issue:
• Download sources from https://github.com/urbanairship/ios-library directly into your App folder (don't take .zip given on their website)
• Drag & drop the Airship folder in your Project (do not use the AirshipLib one)
• Don't link any of the libUAirship-3.0.0.a or libUAirship-iOS5-3.0.0.a
• Boom. It's working.
Hope it'll help some others out there looking to fix this for ages.
Just to add, my problem was that I added -ObjC flag to the project, and it should be added to the target settings.
Also, if that does not compile, there is another option
-Wl,-force_load,<PathToYourLib>/libUAirship-4.0.0.a
Also should be added to the target. Fill the real path to your lib instead of <PathToYourLib>.

pushwoosh error unrecognized selector sent to instance Cordova 1.7.0

I am trying out pushwoosh and tried unregistering an iOS device on the remote api and this error came up:
-[__NSDictionaryI cdvjk_JSONString]: unrecognized selector sent to instance
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '- [__NSDictionaryI cdvjk_JSONString]: unrecognized selector sent to instance
*** First throw call stack:
libc++abi.dylib: terminate called throwing an exception
Sending request: {"request":{"hwid":"my_hwid", "application":"my_app_id"}}
To urL https://cp.pushwoosh.com/json/1.3/pushStat
(lldb)
I then realized that the unregister method is implemented only for androids and not iOS devices so that request was not being used by the pushwoosh plugins in the plugins folder.
I removed the code from my index.js and pushnotifications.js files but still the error came up every time I tried to launch the app after accepting a push notification.
I then removed this code from the remote api:
new JObject(
new JProperty("custom", "json data"))),
new JProperty("link", "http://pushwoosh.com/")
with the hope that the seemingly custom data wil not be sent to pushwoosh.
Still the error appears. I know that the problem is that an unhanded request is being made every time but the problem is that the code does not exist.
Could I have possibly edited some method signatures and these signatures are being used each and every time I try to accept a push notification?
Or is it that Xcode performs auto-complete?
I would need someone who is familiar with pushwoosh (and Xcode) to help me out here. What would be the workaround without having to upgrade to Cordova 2.1.0 or later since (This error comes from the plugin itself, Phonegap guys have changed the way "JSONString" objective-c function gets called by adding prefix "cdvjk_" breaking the compatibility of the plugins with any < 2.1 Phonegap versions.)?
Please read this thread. Unfortunately, this is kinda fault of PhoneGap guys, who made it impossible to support both Cordova 2.1 and earlier versions:
https://github.com/shaders/phonegap-cordova-push-notifications/issues/12
You can contact Pushwoosh team asking if they still can help you with the older versions.

Resources