Post

Replies

Boosts

Views

Activity

APP not work in simulator with xcode 14.3
I am developing an IPAD application for IOS 15 on a macOS Ventura 13.3.1 (a) and with an XCode Version 14.3 (14E222b). When I launch the application in the simulator it starts the application but then the black screen appears on the simulator, but it does not return any error, the application works but with the black screen. I put a part of the code for you... import SwiftUI @main class MyApp { static func main() { UIApplicationMain(CommandLine.argc, CommandLine.unsafeArgv, nil, NSStringFromClass(AppDelegate.self)) } } And here another part (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //-- si no ha creat la finestra if (self.window == nil){ // Create and configure the UIWindow instance // A CGRect is a struct with an origin (x, y) and a size (width, height) CGRect winFrame = [[ UIScreen mainScreen] bounds]; UIWindow theWindow = [[ UIWindow alloc] initWithFrame:winFrame]; self.window = theWindow; // [theWindow release]; } //-- posam la base de dades a on toca [self inicializacion]; //-- arrancam les vistes TWNIndex oVista = [[TWNIndex alloc] init]; TWNNavController* oControler = [[TWNNavController alloc] initWithRootViewController:oVista]; [oVista release]; self.window.rootViewController = oControler; [oControler release]; // Override point for customization after application launch. [self.window makeKeyAndVisible]; //-- Registram un observador [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(siSincronizarDatos:) name:@"TEINORsiSincronizarDatos" object:nil]; //-- que es vegi la bateria i altres informacions /* [application setStatusBarHidden:NO]; [application setStatusBarStyle:UIStatusBarStyleLightContent]; */ //-- continuam return YES; } What is the problem?
1
0
343
May ’23