Skip to content

Thread 1: EXC_BREAKPOINT (code=1, subcode=0x1033e55ec) #8

@zrina1314

Description

@zrina1314
 (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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions