I'm trying to integrate Firebase (C++ edition) into our Cocos2d-x game, but I'm getting the runtime error:
2018-04-19 10:03:26.163854-0700 WordTurds-mobile[2328:2036998] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString fira_UTF32Length]: unrecognized selector sent to instance 0x1013a4a40'
This is occurring when initializing Firebase inside our AppController.mm's didFinishLaunchingWithOptions method, specifically this line is crashing:
firebaseApp = firebase::App::Create(firebase::AppOptions());
It might also be interesting that I tried using the Objective-C version of Firebase and saw the same exception when sending an Analytics screen view manually.
Adding -ObjC to the Other Linker Flags fixes the issue. I didn't have any ObjC in my project so I didn't think I needed the flag.
Related
I am working on a flutter project. Here I had to implement deeplink through notification. For this i am using flutter_facebook_app_links-2.0.0+2. I have done all the settings required for integrating the library described here . But my app is crashing due to
Class FBSDKBasicUtility is implemented in both /private/var/containers/Bundle/Application/BE7882D2-54B1-4E0A-A1E2-8CB5FAF8A3D3/Runner.app/Frameworks/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics (0x102922ab0) and /private/var/containers/Bundle/Application/BE7882D2-54B1-4E0A-A1E2-8CB5FAF8A3D3/Runner.app/Runner (0x101262350). One of the two will be used. Which one is undefined..
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSDKApplicationDelegate initializeSDK]: unrecognized selector sent to instance 0x281323750'.
Can anyone help me out to solve the issue?
Have a look at your info.plist file for iOS. It must contain the FacebookAppId, the DisplayName, and the URL Schemes.This is Also described in Step 2 Of Getting Started
So I direct downloaded the framework and followed all the steps listed here https://cloud.google.com/recaptcha-enterprise/docs/instrument-ios-apps#direct-download.
But when I run the project it throws *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBLPromise pendingObjects]: unrecognized selector sent to instance 0x600002eb8c90'. For those who are unaware FBLPromise is one of the dependencies on reCAPTCHA framework.
Did anyone face the same problem? or know a way out on how to resolve the same?
I am using Google Firebase for analytics, crash reporting, authentication...
I installed SDKs with Cocoa Pods. All currently installed SDKs work fine.
After adding AdMob SDK my app crashes. Right after successful build I get different errors on different devices.
Iphone 6s:
-[NSTaggedPointerString count]: unrecognized selector sent to instance
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa000000000062662'
And iPad 2:
-[__NSCFString count]: unrecognized selector sent to instance 0x6100000348a0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x610000024dc0'
I am not even initialising AdMob in AppDelegate class, just implementing it and trying to build.
If I remove AdMob from project, app works fine so its definitely AdMob problem.
I really cant find any useful help or someone with similar problem. Creating new and clean project definitely wont be my solution.
I guess there is something wrong with my project configuration, because in my other project I have implemented AdMob about month ago and everything works fine.
I am integrating PayU in my swift 2 based project by using sample code source from link: https://github.com/payu-intrepos/iOS-SDK/releases/tag/v3.3
The app crashes with the following log in the console, when the payu webview code from the class PayUUIPaymentUIWebViewController is executed:
webViewDidStartLoad URL-----> 2016-01-07 19:07:59.788
MyTestApp[14764:2080307] -[__NSCFData gunzippedData]: unrecognized
selector sent to instance 0x7f80395de440 2016-01-07 19:07:59.809
MyTestApp[14764:2080307] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[__NSCFData gunzippedData]:
unrecognized selector sent to instance 0x7f80395de440'
It is an unhandled exception. Does anyone know what this means? What could be the cause of it?
In your Xcode project add "-Objc" in Other Linker Flags in Project Build Settings.
l have followed all the steps on the google for ios sdk and imported all the libraries and headers, did set up my key on the appdelegate and my app including #import on the bridging header, then went to my Project NOT Target as per instructions please see attachment, l can but still my app crashes with *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance