Crashlytics on iOS unable to update network info during initialization
Clash Royale CLAN TAG#URR8PPP
Crashlytics on iOS unable to update network info during initialization
I'm running into a problem with Fabric Crashlytics on my React Native app on iOS. I recently refactored my project to use iOS schemes to manage the different build environments better (different app id, app names etc) as well as for some other customer related reasons. Ever since then, my iOS environment has not been able to log crashes.
When I run the app in the simulator, I see this in the output:
2018-08-07 19:31:27.104036+0800 Appname[85185:5403735] [Crashlytics] Version 3.10.5 (130)
2018-08-07 19:31:27.159384+0800 Appname[85185:5403735] Could not successfully update network info during initialization.
When I run the pre-schemes version, I don't see this in the output.
I did a diff of the AppDelegate.m, and its identical
Some minor changes to the info.Plist file for version number etc, but nothing there. How do I troubleshoot the cause of this problem?
I'm using Xcode 9.2 in case that helps.
EDITED:
I enabled debug mode and saw the following output:
2018-08-08 10:26:53.711414+0800 Appname[87289:5639505] [Crashlytics] Version 3.10.5 (130)
2018-08-08 10:26:53.711675+0800 Appname[87289:5639505] [Crashlytics] Running on iOS Simulator (iPhone), 11.2.0 (17E199)
2018-08-08 10:26:53.727611+0800 Appname[87289:5639505] [Answers] Initialized
2018-08-08 10:26:53.734830+0800 Appname[87289:5639505] [Fabric] Initialized with kit versions:
"com.twitter.answers.ios" = "1.3.7";
"com.twitter.crashlytics.ios" = "3.10.5";
"io.fabric.sdk.ios" = "1.7.7";
2018-08-08 10:26:53.768519+0800 Appname[87289:5639505] Could not successfully update network info during initialization.
2018-08-08 10:26:54.101 [warn][tid:NSOperationQueue 0x60000003ede0 (QOS: UNSPECIFIED)][RCTModuleData.mm:248] RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks
2018-08-08 10:26:54.100943+0800 Appname[87289:5639594] RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks
2018-08-08 10:26:54.134734+0800 Appname[87289:5639505] [MC] Lazy loading NSBundle MobileCoreServices.framework
2018-08-08 10:26:54.138955+0800 Appname[87289:5639505] [MC] Loaded MobileCoreServices.framework
2018-08-08 10:26:54.226271+0800 Appname[87289:5639584] [Answers] Answers is disabled. Cleaning up.
Is this because crashlytics is loaded before the coreservices is started?
My Pod file:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '8.0'
target 'Appname' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for appname
# this is very important to have!
rn_path = '../node_modules/react-native'
pod 'DoubleConversion', :podspec => rn_path + '/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => rn_path + '/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => rn_path + '/third-party-podspecs/Folly.podspec'
pod 'yoga', path: "#rn_path/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'RCTPushNotification',
'CxxBridge',
'DevSupport'
]
pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'
...
pod 'Fabric'
pod 'Crashlytics'
end
target 'AppTests' do
inherit! :search_paths
# Pods for testing
end
# very important to have, unless you removed React dependencies for Libraries
# and you rely on Cocoapods to manage it
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.