From 3b99df8dce7b3ccb530bceabd4159a663ae5fb72 Mon Sep 17 00:00:00 2001 From: xiewei05 Date: Tue, 17 Aug 2021 15:38:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3chrome=20debug=20crash?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/taroDemo/AppDelegate.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ios/taroDemo/AppDelegate.m b/ios/taroDemo/AppDelegate.m index be97dcfae498..3617c249ed75 100644 --- a/ios/taroDemo/AppDelegate.m +++ b/ios/taroDemo/AppDelegate.m @@ -37,6 +37,13 @@ @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + NSDictionary *oldSettins = [[NSUserDefaults standardUserDefaults] valueForKey:@"RCTDevMenu"]; + if ([oldSettins.allKeys containsObject:@"isDebuggingRemotely"]) { + NSMutableDictionary *settings = oldSettins?[oldSettins mutableCopy]:[NSMutableDictionary dictionary]; + [settings removeObjectForKey:@"isDebuggingRemotely"]; + [[NSUserDefaults standardUserDefaults] setObject:settings forKey:@"RCTDevMenu"]; + } + #ifdef FB_SONARKIT_ENABLED InitializeFlipper(application); #endif