【问题标题】:BlackBerry Dynamics SDK for iOS v. 8.1.0.37 and Firebase analytics crash the application on iOS 14BlackBerry Dynamics SDK for iOS v. 8.1.0.37 和 Firebase 分析使 iOS 14 上的应用程序崩溃
【发布时间】:2020-09-25 12:31:57
【问题描述】:

我们已将 BlackBerry Dynamics SDK 集成到我们的 iOS 应用程序中,该应用程序也使用 Firebase 分析。在运行 iOS 12/13 的设备上一切正常,但在运行 iOS 14 的设备上,初始化 Firebase 时应用程序崩溃。

BlackBerry 授权正常,一旦用户获得授权,就会执行初始化 Firebase 的代码并发生崩溃。

BlackBerry Dynamics SDK 版本为 8.1.0.37,我们使用的是动态库而不是静态库。

BlackBerry Dynamics 文档说明如下:

需要 SDK 版本 8.1 才能在 iOS 上支持 FirebaseCore 14. FirebaseCore 与 iOS 14 上的 SDK 8.0 或更低版本不兼容。如果不使用 FirebaseCore pod,应将其移除 由应用程序。

这里是调用栈:

#0  __exceptionPreprocess ()
#1  objc_exception_throw ()
#2  -[NSProxy methodSignatureForSelector:] ()
#3  ___forwarding___ ()
#4  _CF_forwarding_prep_0 ()
#5  +[ACSubclasser wrapObjectIntoSubclass:] ()
#6  +[NSURLSession(ACURLProtocol) ac_rawSessionWithConfiguration:delegate:delegateQueue:] ()
#7  +[NSURLSession(ACURLProtocol) miac_sessionWithConfiguration:delegate:delegateQueue:] ()
#8  ___lldb_unnamed_symbol9442$$BlackBerryDynamics ()
#9  ___lldb_unnamed_symbol9444$$BlackBerryDynamics ()
#10 -[FIRInstallationsAPIService initWithAPIKey:projectID:]
#11 -[FIRInstallationsIDController initWithGoogleAppID:appName:APIKey:projectID:GCMSenderID:accessGroup:]
#12 -[FIRInstallations initWitAppOptions:appName:]
#13 -[FIRInstallations initWithApp:]
#14 __40+[FIRInstallations componentsToRegister]_block_invoke
#15 -[FIRComponentContainer instantiateInstanceForProtocol:withBlock:]
#16 -[FIRComponentContainer instanceForProtocol:]
#17 +[FIRComponentType instanceForProtocol:inContainer:]
#18 +[FIRInstallations installationsWithApp:]
#19 +[FIRInstallations installations]
#20 +[FIRAnalytics updateFirebaseInstallationID] ()
#21 +[FIRAnalytics startWithConfiguration:options:] ()
#22 -[FIRApp configureCore]
#23 +[FIRApp addAppToAppDictionary:]
#24 +[FIRApp configureWithName:options:]
#25 +[FIRApp configureWithOptions:]
#26 +[FIRApp configure]
#27 -[MFAppDelegate finalizeApplicationLaunch]
#28 -[MFAppGDDelegate didAuthorize]
#29 -[MFAppGDDelegate onAuthorized:]
#30 -[MFAppGDDelegate handleEvent:]
#31 __NSThreadPerformPerform ()
#32 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#33 __CFRunLoopDoSource0 ()
#34 __CFRunLoopDoSources0 ()
#35 __CFRunLoopRun ()
#36 CFRunLoopRunSpecific ()
#37 GSEventRunModal ()
#38 -[UIApplication _run] ()
#39 UIApplicationMain ()
#40 main
#41 start ()

这是打印到控制台的内容:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSProxy methodSignatureForSelector:] called!'
*** First throw call stack:
(0x1a619d114 0x1b99c3cb4 0x1a745f3f8 0x1a619f2e4 0x1a61a16cc 0x1103d3540 0x11036960c 0x110369320 0x1042370f8 0x104237680 0x100e83ed4 0x100e896e8 0x100e825d4 0x100e82428 0x100e82320 0x100e35a50 0x100e35cd8 0x100e36358 0x100e82dd0 0x100e82d08 0x1015c3f84 0x1015c3eb0 0x100e30e74 0x100e309d4 0x100e2fd54 0x100e2f778 0x100e2f6cc 0x10087eeec 0x100b5e7a8 0x100b5eaf0 0x100b5e6ac 0x1a747cda0 0x1a611d240 0x1a611d140 0x1a611c488 0x1a6116a40 0x1a6116200 0x1bc211598 0x1a89dc004 0x1a89e15d8 0x1008a228c 0x1a5df5598)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSProxy methodSignatureForSelector:] called!'
terminating with uncaught exception of type NSException

有人知道有没有办法解决这个问题?

【问题讨论】:

    标签: ios blackberry blackberry-dynamics


    【解决方案1】:

    我们发现只有当 MobileIron 的 AppConnect SDK 也链接到应用程序时才会发生崩溃。

    因此,我们能够通过从我们的应用程序的 BlackBerry Dynamics 版本中删除 AppConnect SDK 来解决该问题。

    【讨论】:

      【解决方案2】:

      在这种情况下,dylib 和 static 应该是相同的。如果问题仍然存在,建议联系 BlackBerry 支持团队进行调查。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-02-27
        • 1970-01-01
        相关资源
        最近更新 更多