Open speakissilver opened 2 years ago
The app crashed when I try to run:
"UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:_viewController]; [self.window setRootViewController:nav];"
and the error message shows:
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CALayer pixelFormat]: unrecognized selector sent to instance 0x280263d20'"
I think there might be something wrong with the following part:
"uintptr_t windowHandle = reinterpret_cast(UIApplication.sharedApplication.delegate.window.rootViewController.view);"
Can you advise how to solve this problem?
@speakissilver engine-native is merge into https://github.com/cocos/cocos-engine . Could you please create issues there.
The app crashed when I try to run:
"UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:_viewController]; [self.window setRootViewController:nav];"
and the error message shows:
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CALayer pixelFormat]: unrecognized selector sent to instance 0x280263d20'"
I think there might be something wrong with the following part:
"uintptr_t windowHandle = reinterpret_cast(UIApplication.sharedApplication.delegate.window.rootViewController.view);"
Can you advise how to solve this problem?