gpt4 book ai didi

Firebase 消息传递导致 Xamarin iOS 崩溃

转载 作者:行者123 更新时间:2023-12-05 07:18:24 24 4
gpt4 key购买 nike

当我尝试部署应用程序时,我在控制台中收到此错误,在模拟器和物理设备上都进行了尝试。它显示初始图像,然后为应用程序设置背景。没有抛出异常,调试器只是断开连接。我正在使用 Visual Studio for mac、ios 13 sdk 和最新的 Firebase NuGets。尝试降级,但无济于事。

这似乎只发生在我使用 Firebase Messaging 时。如果我删除任何与 Firebase Messaging 相关的代码(但不删除 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>

关于Firebase 消息传递导致 Xamarin iOS 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58290955/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com