NSInvalidArgumentException using Vungle when Unity app starts - ios

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.

Related

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

On Google plus integration in iOS app crashes

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.

Admob crash in below iOS v6.1

I run my app in xcode 5.0 and iPhone Simulator7.0 . App successfully executing with admob mediation sdk integration. the same app when i run in xcode 5.0 and iPhone Simulator 6.0 it is crashing. and try without admob mediation integration it is successfully executing.i added -ObjC in "Other Linker Flags".
The log is:
how can i do solve this problem?
Edit:
i added all the frameworks #iDev told. and the log shows:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'ADBannerView must be part of a view hierarchy managed by a UIViewController'
*** First throw call stack:
(0x3466052 0x2c59d0a 0xc929e5 0x1b9783e 0x1b93c72 0x1b98a4f 0x1b9272b 0x1eb9e9 0x1f1849 0x1eff76 0x1ff17c 0x1b8acf 0xc9309a 0xc90705 0x3467e72 0xc9eca1 0xca14be 0xca2058 0x2eeb3ec 0x2eed515 0x339d833 0x339cdb4 0x339cccb 0x3cc1879 0x3cc193e 0x1b5ba9b 0xa1d56 0x2f45 0x1)
terminate called throwing an exception(lldb)
To include AdMob mediation for iOS in you app:
1. Add the libAdapterSDKAdfonic.a library to your project and ensure it is listed in the target's Link Binaries Build Phase. 2. Add the following additional frameworks to your target's Link Binaries Build Phase :
CoreLocation.framework
MediaPlayer.framework
QuartzCore.framework
SystemConfiguration.framework
CoreTelephony.framework (If your app supports iOS versions before 4.0, you can add this as an optional framework.)
EventKit.framework
MessageUI.framework
CoreMotion.framework
libsqlite3.a
libz.a
MobileCoreServices.framework
CFNetwork.framework

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