From d8615b2f9a4a5f8cdb2d826a2f41035db0de4d7a Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 26 Sep 2022 12:02:30 +0800 Subject: [PATCH] iOS: compat API with iOS 16 --- doric-iOS/Pod/Classes/Loader/DoricJSLoaderManager.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Loader/DoricJSLoaderManager.m b/doric-iOS/Pod/Classes/Loader/DoricJSLoaderManager.m index a76c45a2..3461190b 100644 --- a/doric-iOS/Pod/Classes/Loader/DoricJSLoaderManager.m +++ b/doric-iOS/Pod/Classes/Loader/DoricJSLoaderManager.m @@ -58,7 +58,10 @@ - (void)addJSLoader:(id )loader { ret = [DoricAsyncResult new]; __block NSString *contextId = nil; __block NSString *className = nil; - NSURLComponents *components = [NSURLComponents componentsWithString:source]; + + NSURLComponents *components = [NSURLComponents componentsWithString: + [source stringByReplacingOccurrencesOfString:@"_internal_://" + withString:@"internal://"]]; [components.queryItems forEach:^(NSURLQueryItem *obj) { if ([obj.name isEqualToString:@"class"]) { className = obj.value;