Error while implementing facebook-sdk-swift, app crashes in AppDelegate - swift

When I add SDKApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions) to application(_, didFinishLaunchingWithOptions:) method in AppDelegate, the app crashes with error:
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[NSConcreteMutableData
isEqualToString:]: unrecognized selector sent to instance
0x600000054340'
Without it the app runs fine. I also tried Objective-C version of the SDK as well, however I get the same error with the respective method call:
FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)

I had the same issue with version 4.18.0 Facebook SDK. I reverted to an older version 4.17.0 and I no longer get the crash.

Related

Swift 5:- App ID not found. Add a string value with your app ID for the key FacebookAppID to the Info.plist or call [FBSDKSettings setAppID:]

After updating xCode from 12.4 to 12.5.1 we start to face crashing problem with Facebook SDK, we are using Swift package manager in our APP, but we received this message
Terminating app due to uncaught exception 'InvalidOperationException', reason: 'App ID not found. Add a string value with your app ID for the key FacebookAppID to the Info.plist or call [FBSDKSettings setAppID:].'
*** First throw call stack:
(0x1aab5b298 0x1be8b5480 0x102ca6d84 0x102ca6f04 0x102cd1828 0x102cd37a4 0x102cd2b58 0x102cd24f4 0x102cd0690 0x102cd078c 0x10241e638 0x102696ea8 0x102696f10 0x1acf7e418 0x1acf87954 0x1acf845c4 0x1acf83b8c 0x1acf781f4 0x1acf77584 0x1ad441ba8 0x1ad41d7f0 0x1ad4a0bcc 0x1ad4a53f0 0x1ad49c6dc 0x1aaada8f0 0x1aaada7f0 0x1aaad9b44 0x1aaad4060 0x1aaad3818 0x1c11d9570 0x1ad3ff0e8 0x1ad404664 0x1028adf58 0x1aa7b2140)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'InvalidOperationException', reason: 'App ID not found. Add a string value with your app ID for the key FacebookAppID to the Info.plist or call [FBSDKSettings setAppID:].'
terminating with uncaught exception of type NSException
We did not get any answer until now.
I found this answer and my problem solved
Facebook Github
just update your didFinishLaunchingWithOptions with that code
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Initialize Facebook SDK
FacebookCore.ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
}

App terminates on run

I am making an app in Swift and Xcode 6 and everything has been working fine, until now. When I go to run it, I get a delegate error and it crashes immediately. Here is the debugger code:
2014-11-11 10:18:48.282 Pro Cast[2987:65789] *** Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'You have to call setApplicationId:clientKey: on Parse to configure Parse.'
I've never had an issue with Parse up tot his point. What can I do?
You need to set your Parse applicationID and clientID in the AppDelegate.m. Specifically in didFinishLaunchingWithOptions You can get your appID and clientID on the parse website.
Don't forget to import the parse framework.

webView:didFailLoadWithError - (null) phone gap app for ios

I'm getting this error while loading paypal checkout page. I'm using in app browser of phonegap for this.Any idea?
webView:didFailLoadWithError - (null)
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]
I've got the same problem. The resolution is being discussed in the cordova forum https://issues.apache.org/jira/browse/CB-3530.

What's the difference between 3G and Wifi in iOS5?

Got some problem in here, in my application, I'm using Twitter API in showing the timeline of different users. The weird thing is, it's doing fine if my connection is WIFI, but when I switch to 3G, my Application crashes... Can somebody explain me what's the reason behind this weird experience? Great thanks ...
The crash log is
2012-08-29 16:17:23.847 PFAv1[4044:707] array of tweets count 2
2012-08-29 16:17:23.850 PFAv1[4044:707] -[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x21b7e0
2012-08-29 16:17:23.854 PFAv1[4044:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x21b7e0'

App crashes after logging in using facebook connect

I have setup my application key and secret as well as added the facebook connect button to my view. When I select the button and login within the app, it crashes with the following error
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CategoryQuoteViewController session:didLogin:]: unrecognized selector sent to instance 0x5d10800'
I have no idea what this is and cant find anything on the facebook wiki.
The - (void)session:(FBSession*)session didLogin:(FBUID)uid delegate method needed to be added.