Firebase Messaging 导致 Xamarin iOS 崩溃



当我尝试部署应用程序时,我在控制台中收到此错误,在模拟器和物理设备上都尝试过。它显示启动图像,然后为应用程序设置背景。不会引发异常,调试器只是断开连接。 我正在使用Visual Studio for mac,ios 13 sdk和最新的Firebase NuGets。尝试降级,但没有任何帮助。

似乎这只发生在我使用Firebase消息传递时。如果我删除与Firebase消息传递相关的任何代码(但不删除NuGet(,它将按预期工作。

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Description: DYLD, dependent dylib '@rpath/protobuf.framework/protobuf' not found for '/private/var/containers/Bundle/Application/DA138C0F-1292-4C17-A793-0443C743F7F6/ClubHub.iOS.app/Frameworks/FirebaseMessaging.framework/FirebaseMessaging', tried but didn't find: '/private/var/containers/Bundle/Application/DA138C0F-1292-4C17-A793-0443C743F7F6/ClubHub.iOS.app/Frameworks/protobuf.framework/protobuf' '/private/var/containers/Bundle/Application/DA138C0F-1292-4C17-A793-0443C743F7F6/ClubHub.iOS.app/Frameworks/FirebaseMessaging.framework/Frameworks/protobuf.framework/protobuf' '/private/var/containers/Bundle/Application/DA138C0F-1292-4C17-A793-0443C743F7F6/ClubHub.iOS.app/Frameworks/protobuf.framework/protobuf' '@rpath/protobuf.framework/protobuf' '/System/Library/Frameworks/protobuf.framework/protobuf' Highlighted by Thread: 0

昨天我在控制台中收到不同的错误:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[FIRApp registerAsConfigurable:]: unrecognized selector sent to class 0x11034d9e8' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23bb9604 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x00007fff23b9d7bc ___forwarding___ + 1436 4 CoreFoundation 0x00007fff23b9f6c8 _CF_forwarding_prep_0 + 120 5 libobjc.A.dylib 0x00007fff503bcdf0 load_images + 1226 6 ??? 0x0000000110c24d79 0x0 + 4576136569 7 ??? 0x0000000110c31970 0x0 + 4576188784 8 ??? 0x0000000110c30786 0x0 + 4576184198 9 ??? 0x000<…>

适用于 Xamarin iOS 的 Firebase 软件包(具有以下版本(运行良好。

<PackageReference Include="Xamarin.Firebase.iOS.PerformanceMonitoring">
<Version>8.10.0.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.iOS.CloudMessaging">
<Version>4.7.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.FireBase.iOS.InstanceID">
<Version>4.8.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.FireBase.iOS.Core">
<Version>8.10.0.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.FireBase.iOS.Analytics">
<Version>8.10.0.3</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.iOS.Installations">
<Version>8.10.0.3</Version>
</PackageReference>

相关内容

  • 没有找到相关文章