From 517529a529e8bb7fbfbd431cb116785f72a5210b Mon Sep 17 00:00:00 2001 From: leesam Date: Tue, 10 Oct 2023 14:15:23 +0900 Subject: [PATCH] fix: Swift classes are not allowed to have +load --- ios/Frame Processor/FrameProcessorPlugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Frame Processor/FrameProcessorPlugin.h b/ios/Frame Processor/FrameProcessorPlugin.h index 940877420b..d174efe84a 100644 --- a/ios/Frame Processor/FrameProcessorPlugin.h +++ b/ios/Frame Processor/FrameProcessorPlugin.h @@ -49,11 +49,11 @@ objc_name : NSObject \ @end \ \ -@interface objc_name (FrameProcessorPlugin) \ +@interface objc_name (FrameProcessorPlugin) \ @end \ @implementation objc_name (FrameProcessorPlugin) \ \ -+(void)load \ +__attribute__((constructor)) static void VISION_CONCAT(initialize_, objc_name)() \ { \ [FrameProcessorPluginRegistry addFrameProcessorPlugin:@"__" @ #name callback:^id(Frame* frame, NSArray* args) { \ return [objc_name callback:frame withArgs:args]; \