Xcode 9 <Warning> 找不到根视图控制器
在使用Xcode 9编译项目时,在控制台上多次重复注意以下警告。
Appname [33380] <Warning> [Firebase/Analytics][I-ACS031011] Root view controller not found
其他相关细节:
Appname [33380] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40002000 started Appname [33380] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see --shortened url--) Appname [33380] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist Appname [33380] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
这些重复警告“[Firebase / Analytics] [I-ACS031011]未find根视图控制器”在使用断点进行debugging时泛滥控制台。 经过几步后,模拟器停止响应触摸和键盘事件(需要重新启动debugging会话)。
也许我需要更新Firebase?
Podfile.lock:
- Firebase/Core (4.0.4): - FirebaseAnalytics (= 4.0.2) - FirebaseCore (= 4.0.4) - Firebase/DynamicLinks (4.0.4): - FirebaseInstanceID (2.0.0):
相关的swift特定问题: 未findFirebase根视图控制器警告
将Firebase和其他相关依赖项更新到最新版本修复了以下问题:
您可以使用此命令来更新特定的窗格:
pod update Firebase/DynamicLinks
或carthage update ..
基于迦太基的集成和类似的步骤子模块或直接来源整合的Firebase。
更新后的Podfile.lock应该具有更新的Firebase/Core v4.2.0
等条目:
- Firebase/Core (4.2.0): - FirebaseAnalytics (= 4.0.3) - FirebaseCore (= 4.0.7) - FirebaseAnalytics (4.0.3): - FirebaseCore (~> 4.0) - FirebaseInstanceID (~> 2.0) - FirebaseDynamicLinks (2.1.0): - FirebaseAnalytics (~> 4.0) - FirebaseInstanceID (2.0.3)