本文介绍了在Podfile中包含Firebase / Auth时,EXC_BAD_ACCESS代码= 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 在Podfile中包含Firebase / Auth后,我得到了EXC_BAD_ACCESS。没有添加任何firebase代码行就会发生这种情况。我在xcode 8上使用了swift3,结果是 $ b 安装Firebase(3.8.0)安装FirebaseAnalytics (3.5.1)安装FirebaseAuth(3.0.6)安装FirebaseCore(3.4.4)安装FirebaseInstanceID(1.0.8)使用GTMOAuth2(1.1.4)使用GTMSessionFetcher(1.1.7)使用GoogleAppUtilities(1.1.2)安装GoogleInterchangeUtilities(1.2.2)使用GoogleSignIn(4.0.1)使用GoogleSymbolUtilities 使用ProtocolBuffers-Swift(3.0.6)使用QorumLogs( 0.9) 错误出现在中的线程1中[UIViewController(FIRAScreenClassName)fira_viewDidAppear :]: 只有当pod目标本身就是嵌入应用程序的框架时才会发生这种情况。 $ b 我也有Google分析功能。是否因为ARC没有启用?我该如何做到这一点在xcode-8上? 还有其他的选择可以尝试吗? 解决方案在最新的Firebase / Core(3.8。 0)发布。即使 @IBDesignable 也会因递归调用您提到的方法签名而崩溃。 您有几个选项: 在Info.plist(app)中,将 FirebaseAutomaticScreenReportingEnabled )。这解决了我正在运行的应用程序的问题,但IBDesignable资源在构建时导致了这个错误: file:/ ///设置为/project/Base.lproj/Main.storyboard:错误:IB Designables:无法呈现和更新UIViewController(svZ-78-1Mn)的自动布局状态:代理程序崩溃 您可能需要暂时降级到3.7.1,例如 pod'Firebase / Core','〜> 3.7.1' pod'Firebase / Auth' pod'Firebase / Database' 运行 pod更新。 I am getting EXC_BAD_ACCESS after including 'Firebase/Auth' in Podfile. This happens without adding any line of firebase code. I am using swift3 on xcode 8 and the resultant pods are -Installing Firebase (3.8.0)Installing FirebaseAnalytics (3.5.1)Installing FirebaseAuth (3.0.6)Installing FirebaseCore (3.4.4)Installing FirebaseInstanceID (1.0.8)Using GTMOAuth2 (1.1.4)Using GTMSessionFetcher (1.1.7)Using GoogleAppUtilities (1.1.2)Installing GoogleInterchangeUtilities (1.2.2)Using GoogleSignIn (4.0.1)Using GoogleSymbolUtilities (1.1.2)Installing GoogleToolboxForMac 2.1.0 (was 2.1.0)Using Localize-Swift (1.6)Using ProtocolBuffers-Swift (3.0.6)Using QorumLogs (0.9)The error comes in Thread 1 in [UIViewController(FIRAScreenClassName) fira_viewDidAppear:]:This happens only if the pod target is itself a framework which is embedded in an app eventually.I do have Google analytics as well. Is it because ARC is not enabled? How do I do that on xcode-8?Any other options to try? 解决方案 There appears to be a problem in the latest Firebase/Core (3.8.0) release. Even @IBDesignable was crashing with a recursive call to the method signature you mentioned.You have a couple of options:In Info.plist (app), set FirebaseAutomaticScreenReportingEnabled to NO (bool). This solved the problem for my running application, but IBDesignable resources caused this error on build:file:///path/to/project/Base.lproj/Main.storyboard: error: IB Designables: Failed to render and update auto layout status for UIViewController (svZ-78-1Mn): The agent crashedYou may want to temporarily downgrade to 3.7.1, for example, pod 'Firebase/Core', '~> 3.7.1' pod 'Firebase/Auth' pod 'Firebase/Database'The rest of the dependencies should take care of themselves when you run pod update. 这篇关于在Podfile中包含Firebase / Auth时,EXC_BAD_ACCESS代码= 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-28 00:09
查看更多