-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
(void)swizzleOpenURL {
if (self.verbose) NSLog(@"ReactNativeMoFs.swizzleOpenURL");
// assert([NSThread isMainThread]);
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
dispatch_sync(dispatch_get_main_queue(), ^{ /// -->> An error is reported here.
id<UIApplicationDelegate> appDelegate = RCTSharedApplication().delegate;
assert(appDelegate);
methodSwizzle(
[appDelegate class], @selector(application:openURL:options:),
[self class],@selector(swizzled_application:openURL:options:)
);
RCTSharedApplication().delegate = appDelegate;
});
});
}
Error message:
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x1033e55ec)
Metadata
Metadata
Assignees
Labels
No labels