Bug ios app cc 3.8.7?

I’m experiencing a black screen, still not showed launch screen after opening the app, killing it, and then reopening it. If I repeat this around 4 or 5 times, it happens once. Has anyone encountered this issue before?

App delegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [[SDKWrapper shared] application:application didFinishLaunchingWithOptions:launchOptions];
    appDelegateBridge = [[AppDelegateBridge alloc] init];
    
    // Add the view controller's view to the window and display.
    CGRect bounds = [[UIScreen mainScreen] bounds];
    self.window   = [[UIWindow alloc] initWithFrame:bounds];

    // Should create view controller first, cc::Application will use it.
    _viewController                           = [[ViewController alloc] init];
    _viewController.view                      = [[View alloc] initWithFrame:bounds];
    _viewController.view.contentScaleFactor   = UIScreen.mainScreen.scale;
    _viewController.view.multipleTouchEnabled = true;
    [self.window setRootViewController:_viewController];

    [self.window makeKeyAndVisible];
    [appDelegateBridge application:application didFinishLaunchingWithOptions:launchOptions];
    return YES;
}

App ios have already run launch screen then show black screen. Application.js didn’t run code

Hi,

Can you please let me know how to implement the cocos game in existing ios project. I have the running game and have build it for ios but i want to integrate it in my existing ios app.