From 6080717940fbcebd4834583c8a659baa917a5f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Mon, 18 May 2020 19:07:41 +0800 Subject: [PATCH] fix build not call when debugging --- doric-iOS/Devkit/Classes/DoricDev.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doric-iOS/Devkit/Classes/DoricDev.m b/doric-iOS/Devkit/Classes/DoricDev.m index 91921eb6..9e765f6c 100644 --- a/doric-iOS/Devkit/Classes/DoricDev.m +++ b/doric-iOS/Devkit/Classes/DoricDev.m @@ -125,14 +125,16 @@ - (void)onEnterDebugEvent { - (void)onStopDebugEvent { _context.driver = [DoricNativeDriver instance]; _context.rootNode.viewId = nil; - [_context callEntity:DORIC_ENTITY_INIT, _context.initialParams, nil]; + [_context callEntity:DORIC_ENTITY_INIT, _context.extra, nil]; [_context callEntity:DORIC_ENTITY_CREATE, nil]; + [_context callEntity:DORIC_ENTITY_BUILD withArgumentsArray:@[_context.initialParams]]; } - (void)onDebuggerReadyEvent { _context.driver = _driver; _context.rootNode.viewId = nil; - [_context callEntity:DORIC_ENTITY_INIT, _context.initialParams, nil]; + [_context callEntity:DORIC_ENTITY_INIT, _context.extra, nil]; [_context callEntity:DORIC_ENTITY_CREATE, nil]; + [_context callEntity:DORIC_ENTITY_BUILD withArgumentsArray:@[_context.initialParams]]; } @end