Google maps ios 8 swift crashing unrecognized selector sent to instance - ios

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

Related

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSDKApplicationDelegate initializeSDK]

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

Firebase NSInvalidArgumentException in Cocos2d-x Game - '-[__NSCFConstantString fira_UTF32Length]: unrecognized selector

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.

Firebase AdMob implementation crashing app

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.

Getting strange issue while running Objective-C framework in Swift Project

Not sure what is the issue, and unable to find on goggle too.
Application screen became black and app crashed.
-[BSMutableSettings applicationWillResignActive:]: unrecognized selector sent to instance 0x13ed05f20
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[BSMutableSettings applicationWillResignActive:]: unrecognized selector sent to instance 0x13ed05f20

Error after submitting app to store -[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance

I am developing an iOS 7 app that integrates the Google Maps SDK for iOS.
When testing the app on both iOS devices and emulator it works well.
After submitting the app to the store, when I try to access the part that contains the map it crashes. The phone log shows me this error
-[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance 0x17da2490 <Error>:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
-[GMSMapView animateToCameraPosition:]: unrecognized selector sent to instance 0x17da2490'"
I don't know what I'm doing wrong.
With the Google maps SDK, 'unrecognized selector' often occurs if you haven't included the -ObjC linker flag.
Could it be that you've included -ObjC in the debug build settings (which you might be using when running it from XCode), but it's missing in the release build settings (which it would use when you build to submit to the App Store)?

Resources