-
Notifications
You must be signed in to change notification settings - Fork 156
Firebase Messaging [FIRApp registerAsConfigurable:]: unrecognized selector sent to class 0x11034d9e8 #311
Comments
Tried it again today, but I get another error now:
Still, it happens just when I use CloudMessaging. |
Got the same problem with latest packages for iOS Firebase Messaging. The app starts but nothing happens past launch screen. There are no errors no other info. Downgrading doesn't help at all. I am not able to compile project with new XCode 11.1 and iOS 13.1. |
Same problem here using latest firebase messaging for IOS. I'm building my app on VS for windows. App displays splash screen and then disappears. Device log shows message about missing protobuf library as @coosmiyn reports. |
I want to add to this issue as it seems to be the correct spot. The project I am using to isolate the problem is set up as the Cloud Messaging Sample is, except for some minor details in cloud message handling (actual behavior is not needed to run into the dyld issue) and in Some details about the system:
The package versions in use. Project type GUID, mtouch arguments etc. are the same. <ItemGroup>
<PackageReference Include="Xamarin.Build.Download" Version="0.4.11" />
<PackageReference Include="Xamarin.Firebase.iOS.CloudMessaging" Version="4.1.1" />
<PackageReference Include="Xamarin.Firebase.iOS.Core" Version="6.1.0" />
<PackageReference Include="Xamarin.Firebase.iOS.InstanceID" Version="4.2.1" />
<PackageReference Include="Xamarin.Forms" Version="4.2.0.848062" />
</ItemGroup> After compiling and running on the simulator, e.g., an iPhone 11, OS version 13.1, the following crash is logged in the console.
I have omitted the remaining libraries but left those in. Notably, a framework The code for the AppDelegate is as follows. using System;
using Firebase.CloudMessaging;
using Foundation;
using UIKit;
using UserNotifications;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
namespace xamarin_android9_example.iOS
{
[Register("AppDelegate")]
public class AppDelegate : FormsApplicationDelegate,
IUNUserNotificationCenterDelegate, IMessagingDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Forms.Init();
LoadApplication(new App());
Firebase.Core.App.Configure();
// Register your app for remote notifications.
if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
{
// For iOS 10 display notification (sent via APNS)
UNUserNotificationCenter.Current.Delegate = this;
var authOptions = UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge |
UNAuthorizationOptions.Sound;
UNUserNotificationCenter.Current.RequestAuthorization(authOptions,
(granted, error) => { Console.WriteLine(granted); });
}
else
{
// iOS 9 or before
var allNotificationTypes = UIUserNotificationType.Alert | UIUserNotificationType.Badge |
UIUserNotificationType.Sound;
var settings = UIUserNotificationSettings.GetSettingsForTypes(allNotificationTypes, null);
UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
}
UIApplication.SharedApplication.RegisterForRemoteNotifications();
Messaging.SharedInstance.Delegate = this;
Messaging.SharedInstance.ShouldEstablishDirectChannel = true;
return base.FinishedLaunching(app, options);
}
[Export("messaging:didReceiveRegistrationToken:")]
public void DidReceiveRegistrationToken(Messaging messaging, string fcmToken)
{
Console.WriteLine($"{nameof(DidReceiveRegistrationToken)} Firebase registration token: {fcmToken}");
}
}
} The diagnostic build output is located in this gist. |
Same Issue here, Any update on this? |
After a long search, we found out the root of the issue. The issue is that Firebase.CloudMessaging was built against Protobuf v3.10 due to Podspec version rules and Firebase.Core against v3.8, between these versions, the Module name changed from Downgrading CloudMessaging to v3.1.2 could be a workaround but could bring unexpected behaviors. We are working on a fix right now. |
@SotoiGhost great news, |
Hello, I have the same issue, but only on my CI machine, on my machine compile correctly. I was thinking about caching on my laptop but by deintegrating pods and reinstall them all it keeps working. |
have the same problem, application crashes when start debuging. is there solution? tried downgrade cloudmessaging to 3.1.2, but can not compile anymore |
@doudouLin The fix was merge and now it's building on Azure. Hope today the fix can be released to NuGet |
@SotoiGhost thank you very much for the quick reply! was struggling for hours, hihi. |
Guys! Letting you know that Firebase Cloud Messaging v4.1.1.1 has been just pushed to NuGet. Just wait a bit so it can be indexed. If something happens related to this, please, fill a new issue. Best! |
And FYI, there's an issue with NuGet right now where dependencies .targets and .props are not being referenced correctly. If you face an error similar to issue #318, please, add |
@SotoiGhost Thanks!!, Seems it's working with the updated version. |
While using SignInWithCredential the app is crashing with "Specified cast is not valid " error. Firebase versions using:
Code Sample:
Stack Trace error:
|
I'm having this issue now, and not able to pinpoint where it's coming from. Getting the error from device log: @rpath/Protobuf.framework/Protobuf not found for /private/var/containers/Bundle/Application/3343439-jflkd-34343--/APPNAME/Frameworks/FirebaseFirestore.framework/FirebaseFirestore, tried but didn't find: '/private/var/containers/Bundle/Application/434343-2ADD-3433-543333D22/APPNAME/Frameworks/Protobuf.framework/Protobuf' I have the following packages installed in my Xamarin.iOS project: Xamarin.Firebase.iOS.Analytics (6.2.1) I've tried delete every folder I can think of (XamarinBuildCache, obj, bin, etc). Rolling back versions of packages to previous versions...nothing I do stop my device from crashing on startup and displaying this error in the device log :( It all started when I installed the CloudMessaging package. Everything else works fine. |
@SotoiGhost I am having the same issue as @vincooys. My Nugets and versions are the same as his except I am not referencing Crashlytics but AM referencing Xamarin.Firebase.iOS.DynamicLinks (4.0.1.1) |
Still having the same problem.. |
This issue needs to be reopened, as the Problem still Exists. |
I have the same issue with these versions: It works only after downgrading CloudMessaging to 3.1.2. The working versions, respectively are: |
NOTE: After Updating nugets to Xamarin.Firebase.iOS.CloudMessaging (4.3.0) + .Core (6.6.6) + .InstanceID (4.3.3) |
I'm having this issue with: Xamarin.Firebase.iOS.Core (6.6.6) |
Did anyone find a solution for this issue? |
I have the same issue @SotoiGhost this issue is still ongoing |
For reference it only occurs if Xamarin.iOS framework is newer than 13.16.0.13 |
This is happening even in the latest Release |
Did anyone find a solution for this issue? |
Currently it's working for me: Visual Studio Community 2019 for Mac Xamarin.iOS Xamarin.Firebase.iOS.CloudMessaging (4.7.1) |
I am using VS Version 8.9.2 (build 0), I'll try to downgrade to 8.8.10 |
I get this error in the console when I try to deploy the app, tried both on simulator and physical device. It displays the splash image then it backgrounds the app. No exception is thrown, the debugger just disconnects.
It seems that this only happens when I use Firebase Messaging. If I delete any of the code related to Firebase Messaging (but not deleting the NuGet) it works as intended.
I am using Visual Studio for mac, the ios 13 sdk and the latest Firebase NuGets. Tried downgrading but nothing helps.
The text was updated successfully, but these errors were encountered: