From 3416e94b1827cb72ab7376cf678d259fe9e360ce Mon Sep 17 00:00:00 2001 From: LazyAfternoons Date: Fri, 28 Oct 2022 13:12:44 +0200 Subject: [PATCH] fix: Use `+load` for registering Frame Processors (#1308) Fixes crash with Xcode 14 --- ios/Frame Processor/FrameProcessorPlugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Frame Processor/FrameProcessorPlugin.h b/ios/Frame Processor/FrameProcessorPlugin.h index a2ccdcb..9408774 100644 --- a/ios/Frame Processor/FrameProcessorPlugin.h +++ b/ios/Frame Processor/FrameProcessorPlugin.h @@ -53,7 +53,7 @@ objc_name : NSObject @end \ @implementation objc_name (FrameProcessorPlugin) \ \ -__attribute__((constructor)) static void VISION_CONCAT(initialize_, objc_name)() \ ++(void)load \ { \ [FrameProcessorPluginRegistry addFrameProcessorPlugin:@"__" @ #name callback:^id(Frame* frame, NSArray* args) { \ return [objc_name callback:frame withArgs:args]; \