From 3198e6145d3626692a90a714e58f15e3f30950e8 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 19 Feb 2020 15:09:13 +0800 Subject: [PATCH] iOS:fix iOS DoricLibrary init error --- doric-iOS/Pod/Classes/DoricRegistry.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-iOS/Pod/Classes/DoricRegistry.m b/doric-iOS/Pod/Classes/DoricRegistry.m index 9c480f5f..e99a277c 100644 --- a/doric-iOS/Pod/Classes/DoricRegistry.m +++ b/doric-iOS/Pod/Classes/DoricRegistry.m @@ -111,11 +111,11 @@ - (instancetype)init { _nodes = [NSMutableDictionary new]; _envVariables = [NSMutableDictionary new]; [self innerRegister]; + _monitors = [NSMutableSet new]; + [self registerMonitor:[DoricDefaultMonitor new]]; [DoricLibraries.instance.libraries enumerateObjectsUsingBlock:^(DoricLibrary *obj, BOOL *stop) { [obj load:self]; }]; - _monitors = [NSMutableSet new]; - [self registerMonitor:[DoricDefaultMonitor new]]; } return self; }