Facebook SDK (4.15.1) crashes on Login (iOS8) - ios

I have integrated Facebook SDK(4.15.1) in my app. For iOS9 my app works properly and doesn't crash on user login. If I run the same app on iOS8 device and try to login then app crashes saying:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: object cannot be nil (key: logging_token)'
* First throw call stack:
(0x294ad45f 0x37343c8b 0x293cac53 0x11941f 0x119909 0x1198a5 0x123bcb 0x11980b 0x119741 0x1185cf 0x115571 0x2c9fae7f 0x2c9fae21 0x2c9e5c43 0x2c9fa88d 0x2c9fa567 0x2c9f3e31 0x2c9ca759 0x2cc3e2f9 0x2c9c91a9 0x29473fbf 0x294733cf 0x29471a35 0x293bf3b1 0x293bf1c3 0x309ec201 0x2ca2943d 0x976f0 0x378cfaaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
I have cross checked my info.plist and observed all everything is Configured properly.

Related

Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:'

My iOS application is working fine in iOS 10 and newer version. But when I was trying to run my app on iPad mini with iOS version 9.3.2 then Application is crashing.
I am trying to push a view controller and I am using storyboard for all view controllers.
This is my code for push view controller:
self.performSegue(withIdentifier: "PaymentViewcontrolller", sender: self)
I am getting this is error in console and application is crashing:
2018-10-26 16:21:17.223 Food[592:68727] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:'
*** First throw call stack:
(0x2447391b 0x23c0ee17 0x24473861 0x28fbb15f 0x28fbadf5 0x28ea3477 0x28ea3b01 0x28fbb10f 0x28fbb0a1 0x28fbadf5 0x28ea2a0b 0x28d55aa3 0x28b28ffb 0x289eea1f 0x28a06e71 0x28b9d1e5 0x28aab4a7 0x28aab1b5 0x28aab12b 0x289eaa73 0x26a82bcd 0x26a7e375 0x26a7e209 0x26a7d6d1 0x26a7d3a5 0x26a76b2b 0x244356c9 0x244339cd 0x24433dff 0x24383229 0x24383015 0x25973ac9 0x28a57189 0x3d8008 0x2402b873)
libc++abi.dylib: terminating with uncaught exception of type NSException
My Xcode version is 9.4.1 and deployment target is iOS 9.2.
I am not able to figure out what is the issue. Already spent whole day for this.

quickblox crash on iPad not iPhone

I tried the chat example codes on 2 device using 2 different OS versions.
iPhone 6 plus(9.1) and iPad mini 1st Gen(8.4).
It works fine on the iPhone while it crashes on the iPad.
Code
(QMChatService.m [line 63])
if ([QBSession currentSession].currentUser != nil) [self loadCachedDialogsWithCompletion:nil];
Console log
2016-02-12 12:09:34.966 samplechat[3859:257361] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: acct)'
*** First throw call stack:
(0x24f94137 0x3370fc77 0x24eaf655 0x1421ef 0x1411ed 0x548e19 0x1410e9 0xcf5fb 0xe8323 0x513bf 0xe85c7 0x548187 0x548e19 0xe8559 0x4e8f5 0x285f474d 0x2869f4e5 0x2869f40d 0x2869e981 0x2869e6b7 0x2869e425 0x2869e3b9 0x285f1bbb 0x280073e5 0x28002c35 0x28002abd 0x2800245f 0x2800224f 0x28858195 0x28858f1d 0x288637a9 0x28857287 0x2ba3dec1 0x24f5a255 0x24f59519 0x24f57cb7 0x24ea39a1 0x24ea37b3 0x28659a57 0x28654635 0x5c165 0x33cddaaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
#edit
I tested on another iPad 2(9.2.1) and its working fine. I think there is a problem with the backwards compatibility.

-[FBSDKLoginManager logInWithReadPermissions:fromViewController:handler:]: unrecognized selector sent to instance

I've updated to Parse 1.9.1, Facebook SDK v4.x, iOS 9, Swift 2, and Xcode 7. Didn't change any code and added my .plist keys for LSApplicationQueriesSchemes and App Transport Security Settings.
Now, I can't log into Facebook using class func logInInBackgroundWithReadPermissions(permissions: [String]?, block: PFUserResultBlock?) because I get this error:
2015-10-30 15:24:22.433 [2905:830174] -[FBSDKLoginManager logInWithReadPermissions:fromViewController:handler:]: unrecognized selector sent to instance 0x15ee75d60
2015-10-30 15:24:22.437 [2905:830174] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSDKLoginManager logInWithReadPermissions:fromViewController:handler:]: unrecognized selector sent to instance 0x15ee75d60'
*** First throw call stack:
(0x182f60f48 0x197b13f80 0x182f67c5c 0x182f64c00 0x182e68cac 0x1003de54c 0x1003dd36c 0x1003dd1f0 0x10024d8dc 0x100253578 0x100253de0 0x1002f8864 0x1002fc8cc 0x1002fc618 0x1002f9504 0x1002fdc68 0x1002ad868 0x10013ade0 0x10013af50 0x1887a2f24 0x1887a2994 0x1887aaedc 0x1887b10c0 0x1887b04c4 0x18879af14 0x18879ab9c 0x18cd7f7c4 0x18cd7fb44 0x182f18544 0x182f17fd8 0x182f15cd8 0x182e44ca0 0x18e080088 0x18855cffc 0x10013c8a0 0x1983628b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
I'm not using IBuilder so I don't have anything that's not connected in my storyboard, it looks like I'm just missing that fromViewController parameter. Facebook briefly mentions it in the changelog, but the method isn't available in the ParseFacebookUtilsV4.framework and nothing like it exists for use with Parse.
What am I missing here? Why am I getting this exception everytime I log in and how can I fix it?

Parse local data store crashing my app

I'm using Parse local data store, I set it up like this:
[Parse enableLocalDatastore];
[Parse setApplicationId:#"MY ID "
clientKey:#"MY CLIENT KEY"];
I'm using my real client key and ID, after a few moments my app crashes and this is the log I get in the Xcode console.
*** Terminating app due to uncaught exception 'BFMultipleExceptionsException', reason: 'There were multiple exceptions.'
*** First throw call stack:
(0x1856fa59c 0x195e500e4 0x1002f5acc 0x10030ad80 0x100281030 0x1006e4e30 0x1006e4df0 0x1006f19a0 0x1006f2f18 0x1966712e4 0x196670fa8)
libc++abi.dylib: terminating with uncaught exception of type NSException
any idea on what is happening?

Facebook sdk 3.1 on iOS 5?

my app has facebook sdk 3.1 integrated. It works well with iOS 6 but crashes on iOS 5. I get the following error in the console.
2012-11-08 12:57:04.529 FMB[3446:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSession handleDidBecomeActive]: unrecognized selector sent to instance 0x6977300'
*** First throw call stack: (0x1b54052 0x129bd0a 0x1b55ced 0x1abaf00 0x1abace2 0x695f 0x40922c 0x40aa66 0x419743 0x41a1f8 0x40daa9 0x22adfa9 0x1b281c5 0x1a8d022 0x1a8b90a 0x1a8adb4 0x1a8accb 0x40a2a7 0x40ba9b 0x2ed2 0x2e05) terminate called throwing an exception

Resources