On Google plus integration in iOS app crashes - ios

i am trying to implement google plus login but app crashes and get the following error
+[NSBundle gpp_registerFonts]: unrecognized selector sent to class 0x34ce2f0c

Ensure that uou have added -ObjC to Other Linker Flags in the build settings of your app.

Related

GADInvalidInitializationException without Installing GoogleMobileAds SDK iOS

I am building a react-native app which I do not intend to display ads but I have Firebase Authentication and other related services. To my surprise I keep getting this error below. What could have happen?
*** Terminating app due to uncaught exception
'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK
was initialized incorrectly. Google AdMob publishers should follow
instructions here: https://googlemobileadssdk.page.link/admob-ios-
update-plist to include the AppMeasurement framework, set the -ObjC
linker flag, and set GADApplicationIdentifier with a valid App ID.
Google Ad Manager publishers should follow instructions here:
https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'
The way I found around this error is to update the info.plist by adding
<key>GADIsAdManagerApp</key>
<true/>
This solved the error issue but not the fundamental problem which is why should it required GAD Application Identifier since ads will not be displayed in the app.

How to Fix Unity IOS Facebook Error on App Launch

I am integrating Facebook Login & Sharing into a game for IOS using Unity. But as soon as app launches i am getting this error
-> applicationWillResignActive()
2019-03-11 16:39:07.405809+0500[828:197716] +[NSError fbErrorWithCode:userInfo:message:underlyingError:]: unrecognized selector sent to class 0x1d2710f80
2019-03-11 16:39:07.466234+0500 [828:197716] Uncaught exception: NSInvalidArgumentException: +[NSError fbErrorWithCode:userInfo:message:underlyingError:]: unrecognized selector sent to class 0x1d2710f80
Actually I got almost same error codes in my project on Swift. So is not problem Unity, is problem connection Facebook SDK to project.
In my case, this error happened, when I try use VPN application Luna. Is seem have conflict VPN with Facebook SDK if is connected to project not correct. When VPN disabled, application and analytics worked without any problem.
For fix my problem, in "Project->Build Settings" need have parameter "Other Linker Flags" value "-ObjC".
Also I used bridge ".h" file for connect Facebook SDK to my Swift project. I had line "#import <FBSDKCoreKit/FBSDKCoreKit.h>", so I delete it from bridge. And manual added in every Swift class, what used Facebook SDK this line:
import FBSDKCoreKit
I did not have the "FBSDKCoreKit" parameter in "Other Linked Flags". Adding the package, then cleaning the build was a fix for me

NSInvalidArgumentException using Vungle when Unity app starts

I built a Unity project using Vungle ads and when I build the project for iOS and try to run I get a NSInvalidArgumentException in a Vungle Network Manager call. Does anybody know how to solve this?
This is the error:
Uncaught exception: NSInvalidArgumentException: -[VNGNetworkManager configOperationWithBackgroundInit:complete:]: unrecognized selector sent to instance 0x129ee6110
Turns out it was a bug with the Vungle lib.
Adding GameController.framework to General -> Linked Frameworks and Libraries and -ObjC flag to Build Settings -> Linking -> Other linker flags fixed the problem.

Crash on [__NSCFConstantString gck_matchesPattern:]

When you are creating a Chromecast iOS app by yourself, not copied from cast-ios-sample, it will crash because the framework raises an uncaught exception.
[__NSCFConstantString gck_matchesPattern:]: unrecognized selector sent to instance 0x1c99c
Add "-ObjC" to "Other Linker Flags" in the Build Settings for your target app in Xcode, as the sample app does.
Add -all_load in Target section --> Other Linker Flag

Admob Ads on iOS 4.3 Error-GADObjectPrivate

I am getting the following error on a new app:
'NSInvalidArgumentException', reason: '-[GADObjectPrivate
changeState:]: unrecognized selector sent to instance 0x1ed49a90'.
I have a couple ad networks-Chartboost and Admob. This seems like an Admob error, but it is causing the app to terminate on launch. I have removed the admob code and files, and I am still getting the error.
I don't know if this helps anyone:
* First throw call stack: (0x374ca2a3 0x34fca97f 0x374cde07 0x374cc531 0x37423f68 0x9e950 0xa0314 0x9deb0 0x6e147 0x36e53595
0x36e93d79 0x36e8faed 0x36ed11d1 0x6de0d 0x36e94ad9 0x36e94663
0x36e8c84b 0x36e34c41 0x36e346d5 0x36e34123 0x350c75a3 0x3749f683
0x3749eee9 0x3749dcb7 0x37410ebd 0x37410d49 0x36e8b485 0x36e88301
0x6db2d 0x6da90) libc++abi.dylib: terminate called throwing an
exception
Which version of AdMob are you using? If you are using v6.2, you must use the -ObjC linker flag in the "Other Linker Flags" section of Build Settings. If you are using v6.1 or below, you have to use the -all_load linker flag.
Also, if you're using v6.2, you must be using XCode 4.5 and targeting iOS 6 (you can set your minimum deployment target to iOS 4.3 though).

Resources