IPhone debugging: get a black screen when debugging a universal application

I am working on my universal application (4.0.1 sdk) and I cannot get it to work on iPod touch. It works on the iPad, both on the iPad Simulator and on the iPod simulator. When I try to start the application by touch, my main call is called up and I can stop at the breakpoint (I assume that this means that the settings and certificates are correct) but nothing after that. There is nothing in the GDB magazine. I can debug a simple application like "Hello world" to the touch. Anyone have suggestions on what else to try?

+3
source share
1 answer
  • If you are not using .nib files, you can make sure that the code that creates your window is executed: window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

  • If you use .nib files (.xib), make sure that you properly delegate the window to the application delegate in the interface builder.

In my case, I was subclassed by the application delegate, and I accidentally deleted the line calling [super didFinishLaunchingWithOptions...]where my window was being created.

I hope this helps someone.

Greetings

0
source

Source: https://habr.com/ru/post/1756280/


All Articles