I have following problem:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GADSlot state]: unrecognized selector sent to instance
I have linked all required frameworks.
I was missing -ObjC flag in Other Linker flags
Go to Project settings > Build Settings And set -ObjC in Other Linker Flags.
Related
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.
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.
I'm using CatchoomSDK in my app, and now I want to use socialize framework.
Socialize needs -all_load AND -ObjC flags and with these flag i am getting:
duplicate symbol error.
if I remove the -all_load flags, the app crashes with:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString socializeTrim]: unrecognized selector sent to instance
After long research got the solution steps to resolve the issue:
Remove -all_load flag from Other Linker Flags in Build Phase
Added -force_load followed by path of Socialize library(Means Socialize.a).
For Example
-force_load $(SOURCE_ROOT)/Socialize.embeddedframework/Socialize.framework/Versions/A/Socialize
Trying to integrate Admob with Spritekit.
I am getting an uncaught exception
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GADSlot state]: unrecognized selector sent to instance 0x17ef1440'"
Thanks to this link.
How to fix unrecognized selector issue in AdMob implementation?
I was missing the -objC flag.
Annoying!! (Wasted my full day!)
I am trying to implement bing maps in iphone. I am able to show the map. But the problem is that whenever I try any interaction with the map, it crashes. Here's the error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[BMMapViewInternal touchesBegan:withEvent:inView:]: unrecognized selector sent to instance 0x4e777e0'
any idea as to how this can be solved?
Check the read-me, section "Add Linker Flags":
- Set the value of the Other Linker Flags environment variable to -ObjC -all_load.