I have added the Firebase SDK manually to my project (can't use cocoapods due to configuration issues).
Using the following frameworks:
FirebaseCore.framework
FirebaseInstanceID.framework
Firebasemessageing.framework
In the AppDelegate I have imported this following:
#import "Firebase.h
#import <FirebaseInstanceID/FirebaseInstanceID.h>
#import <FirebaseMessaging/FirebaseMessaging.h>
And then I reference the API:
[FIRApp configure];
All is fine when I build the project. However as soon as the app hits the Firebase SDK API - I am getting the following crash:
Error message in the console:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSData gtm_dataByGzippingData:error:]: unrecognized selector sent to class 0x10553f168'
I have added all the required frameworks I can think of, yet still getting this issue.
Make sure you've added the GoogleToolboxForMac library to your project and you've added -ObjC to Other Linker Options in Build Settings.
Related
I am trying to integrate Applovin Ad into my project. But I get a crash when trying to integrate
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM al_isValidString]: unrecognized selector sent to instance 0x28116aa30'
Below is my code:
ALSdk.shared()!.mediationProvider = ALMediationProviderMAX ALSdk.shared()!.initializeSdk(completionHandler: { _ in })
I tried creating new project and it works. But on my project still Crash. My project integrates admob, iron ads and applovin
I found the error at this line
ALSdk.shared()!.mediationProvider = ALMediationProviderMAX
I use Cocoapods to install
pod 'AppLovinSDK'
It creates 2 paths to that file. But when I click on it, it still only points to 1 file
See this photo to know more
That makes xcode not know which file's func to use. And generate the above error. Hope this helps everyone
I'm getting this crash at a few places through my app which seems to be triggered by IQKeyboardManagerSwift. I get this error in my AppDelegate.swift file on line 10 which is just
`import IQKeyboardManagerSwift. It was all working fine before I updated to the latest version of Swift, howver all my dependencies are up to date. Including IQKeyboardManagerSwift. Has anyone seen a message like this before?
Could not find module 'IQKeyboardManagerSwift' for target
'armv7-apple-ios'; found: arm64, arm64-apple-ios
In the console I also get this message.
Terminating app due to uncaught exception
'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate
class named _UITextLayoutView because no class named _UITextLayoutView
was found; the class needs to be defined in source code or linked in
from a library (ensure the class is part of the correct target)'
This is a known bug in Xcode 11.2
See:
After upgrading to Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView
You can either download an older Xcode version from here: https://developer.apple.com/download/more/
or upgrade to the newly released 11.2.1 (I haven't tried that one yet)
After running a pod update my app now crashes on launch when it hits:
[Fabric with:#[CrashlyticsKit]];
The error returned is:
2019-01-11 14:07:15.935040+0000 Leave[26155:181825] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[Fabric isCrashlyticsCollectionEnabled]: unrecognized selector sent to class 0x10b8354c8'
I am using Xcode10.1, in a project built in Objective-c but with some Swift tests and cocoapods.
I already have the API key in my info.plist and have a run script in my Build Phases.
Before I roll back to the previous version, is there any thing I can try to fix this?
Apparently you should use [Fabric with:#[[Crashlytics class]]]; (as per https://fabric.io/kits/ios/crashlytics/install).
By the way, both Fabric and Crashlytics are now part of the Firebase framework, so I am not even sure this method still works. I'd personally suggest you migrate your project to Firebase to keep it working once the plug is removed from the old Crashlytics environment
For me downloaded sdk from here
again adding it project worked. hope this may help someone.
I'm currently using the latest Facebook SDK, Parse SDK and Xcode.
The Parse SDK frameworks were copied to my project while the Facebook SDK frameworks were referenced. I'm using Bolts.framework that was provided by Facebook and I connected my Parse account with my Facebook App.
The problem is when I try to implement Inside my AppDelegate.m file (after the Parse setApplicationId of course):
[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:launchOptions];
my app crashes with the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:]: unrecognized selector sent to class 0x102c060b0'
These are the header files I included:
#import <Parse/Parse.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>
When I'm using the normal Facebook SDK alone it works fine - I can login using Facebook login button. When Parse comes into play with it's PFFacebookUtils class, I just had horrible experience. At first I couldn't even build the project because of linker errors which were fixed using this solution:
https://stackoverflow.com/a/18626232/3608136
I've tried every solution in Stackoverflow, but I can't figure it out. Here is how my "Search Paths" look:
$(inherited)
$(PROJECT_DIR)/parse-library-1
/Users/me/Documents/FacebookSDK
Everything related to Parse is in parse-library-1.
By the way, needless to say.. when I try to user other methods like logInInBackgroundWithReadPermissions it crashes.
You can try to add "-ObjC" flag to Other Linker Flags section in project settings.
Its happens to me with another framework and the solution was that!
I hope it helps!
I'm trying to integrate a Facebook login with my Parse backend. Upon running the app, I receive
[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:]: unrecognized selector sent to class xxxxxx
on the line
PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(nil)
or
PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions)
I have tried the solution here: https://developers.facebook.com/docs/ios/troubleshooting#unrecognizedselector
(adding the -ObjC flag), and have cleared Derived Data, to no avail.
I'm using Parse SDK 1.7.2, Facebook SDK 4.0.1, and the PFFacebookUtilesV4 framework.
The full error is as follows:
2015-05-03 14:22:25.742 hotPotato[49116:1453068] +[PFFacebookUtils
initializeFacebookWithApplicationLaunchOptions:]: unrecognized
selector sent to class 0x10f524048 2015-05-03 14:22:25.810
hotPotato[49116:1453068] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '+[PFFacebookUtils
initializeFacebookWithApplicationLaunchOptions:]: unrecognized
selector sent to class 0x10f524048'
I faced same issue.
My mistake was that I also added ParseFacebookUtils.framework in the project.
Just remove it and everything will be fine :)
Make sure that you have imported the correct frameworks into your bridging header:
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>
Also check that the needed frameworks are included in the Linked Frameworks and Libraries list under your target's General tab.
If you've added the frameworks manually, go to the Build Settings tab, and make sure that Search Paths contains the paths to the Parse and Facebook frameworks.
Mine looks something like this:
$(inherited)
$(PROJECT_DIR)/Vendor/Facebook
$(PROJECT_DIR)/Vendor/Parse
The PFFacebookUtils initialization call in the application(application:, didFinishLaunchingWithOptions:) delegate method should follow the Parse initialization method:
Parse.setApplicationId("<APP_ID>", clientKey:"<CLIENT_KEY>")
PFFacebookUtils.initializeFacebookWithLaunchOptions(launchOptions)
If you haven't done this already, I suggest that you consult Parse's own guide:
https://parse.com/docs/ios_guide#fbusers-setup/iOS
My problem was solved by making all my frameworks including my Parse ones referenced instead of copied.
Probably a little late but I solved this by using the Bolts.framework from the Facebook SDK as opposed to the Parse SDK.