diff --git a/shell/platform/darwin/ios/framework/Source/FlutterObservatoryPublisher.mm b/shell/platform/darwin/ios/framework/Source/FlutterObservatoryPublisher.mm index 9d52b5de029eb..147ef0d1171ff 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterObservatoryPublisher.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterObservatoryPublisher.mm @@ -80,6 +80,7 @@ - (void)stopService { } #else // TARGET_IPHONE_SIMULATOR [_netService.get() stop]; + [_netService.get() setDelegate:nil]; #endif // TARGET_IPHONE_SIMULATOR }