Facebook: [FBSession activeSession] crashes app - objective-c

I am using the Facebook iOS SDK 3.0, and I just upgraded to the new Facebook iPhone app (5.0).
Now, whenever I call [FBSession activeSession], my app crashes with the error:
-[SBJsonParser errorTrace]: unrecognized selector sent to instance 0x499700
This only happens if I have the new Facebook 5.0 app installed. If I deinstall it, and wait for a little bit, my app runs fine. Also, this never happened before with the older version of the Facebook app.
Has anyone run into this before? There seems to be a bug report with the same issue on the Facebook Developer page, but it hasn't been dealt with yet.

This is because of conflict within the SBJson libraries. We're working to get this resolved and should be fix ready .

Related

Firebase Crash Reporting automatically generates reports for fatal errors in android phone but not for iPhones?

I have setup firebase in my react native app.
But currently exceptions are not handled means not added any crashlytics logs or recorded errors
But for android app I am getting crashes in firebase but not for IOS.
Can someone explain this in detail?
Crashlytics may only be able to upload the data once the app starts again. Did you restart the app?
This can happen if you are testing while the Xcode debugger is attached.
Check this document, it explains how to test this in iOS.
If that doesn't work, enable debug logging and check if something is causing issues. For this:
After enabling debug mode, run the app.
Then hit "stop" in Xcode.
Run the app in the device and crash it
Run the app again from Xcode
Collect the output from Xcode

Application crash immediately when deploy to iPhone running iOS 12 from Xcode 10

App submitted to store one year ago. It worked fine up to iOS 11 but in iOS 12 the app is immediately crashing even without launching. I tried to debug the issue but I couldn't, because before didFinishLaunchingWithOptions, the app crashes and I did not find any error logs.
It is happening in iOS 12 only, working fine with below iOS 12.
How can I debug this issue?
Have you correctly installed your XCode Update? Sometimes you have to install cli
(that is needed e.g. by mtouch if XCode links your assemblies) or other components by hand.
Are you're credentials (certificate) still valid? or otherwise asked: did you build another app since this happens?
Have you set a breakpoint right in you app delegate and step throw until the app crashes? Can you show logs? If you don't have some, than create them by yourself. Do exception handling and log the exceptions. Or otherwise said: More information please.

Expo on iOS crashed without error

I am developing react native application via expo. Earlier everything worked well, but after I decided to translate my app into redux with one monster commit it began crash on iOS , but on Android well. What can be reason of such behavior? In debugger I put a lot of breakpoints, but I couldn't find where is that crashes. If I install osx on virtualbox with xcode and read logs will it help?
In my case there was problem with AsyncStorage. I tried to save null into AS. On android it won't cause any error, but not on ios

Paypal SDK for iOS version 2.13.2 crash

I have used Paypal version 2.13.2 SDK for iOS.The payment with paypal account is working fine but when I am selecting the Pay with card option then the app is crashing.The crash report says
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target
I have imported all the frameworks required for integrating thisSDK.I have also included these 3 libraries i.e libCardIO,libopencv_core,libopencv_imgproc in main bundle.I wonder where the problem is occurring.Do I have to change the SDK and use some previous version of paypal SDK. If I have to use some other SDK please suggest which SDK to use.
After couples of work found that. If you optionally choose
_payPalConfigObj.acceptCreditCards = YES;
Then you need to add/integrate "CardIO" Library to your project. you will be get from "PayPal Official SDK." OR Separate SDK of 'CardIO' and Add required frameworks.
Try with above suggestion, defiantly your issue will be solve.

com.facebook.sdk error 2 in distribution

I already had this working in older versions of my app but our newest update shows this error: com.facebook.sdk error 2 when logging in to facebook.
The app works fine in the simulator and device when built in development mode but the error only shows up when its in the App Store and built in distribution mode. I already found tons of information on the internet but thats not working.
I've checked:
sandbox mode is disabled
bundle id is correct
app store id is correct
facebook logging and deep linking are enabled?
Again our older version worked fine in distribution mode. Our newest version of our app uses facebook sdk 3.5.
EDIT
I unlinked facebook on my device and found out that it returns the wrong app! When pressing the login button safari opens up ask the user for permissions then returns to another app I made (practically the same app but made for a different company). So I deleted all apps on my device and the error was gone.
Double checked the app id on developers.facebook.com and the fbid in my code and thats all correct.
Why is my app returning a different app after giving permissions?
For some reason my phone was mixing up my apps. Uninstalled all and reinstalled and everything worked out fine.