Skip to content

Commit

Permalink
解决chrome debug crash问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiewei05 authored and zhiqingchen committed Aug 17, 2021
1 parent fdf79c1 commit 3b99df8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ios/taroDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b99df8

Please sign in to comment.