SIGABRT on iPhone when changing xib

I just finished the iPhone app, which until today has worked perfectly on the iPhone simulator and real devices.

I tried changing the xib that was loaded in the applicationDidFinishLaunching method in the application delegation class - all I did was change the line in initWithNibName.

When I run the application on the simulator, the Default.png image is displayed, and then the application crashes with an uncaught exception. When working on the device, the Default.png image is displayed for about 10 seconds, the user interface never loads, and I get "GDB: Programmatically received signal:" SIGABRT ". In the Xcode status bar. Debugging shows that applicationDidFinishLaunching is never reached before how the application crashes.

Setting the initial xib back to the original solves the problem, but now I made the changes and saved it in Interface Builder, and the application shows the same problems as above - I did not make any code changes at all.

Is this a memory issue or a known common error problem?

NOTE. I did not make any code changes, and the only changes I made to xib are cosmetic, IBOutlets are not damaged.

+3
source share
5 answers

Sorry guys, my mistake is that I seem to have deleted the MainWindow.xib file, so the delegate was not called at startup after the changes were made. I recreated it and associated it with the application delegate and UIApplication, so now everything works.

+1
source

You probably changed the IBOutlet name in the code without changing it in xib.

+2
source

, , IBOutlets, xib , .

, . xib?

0

Xibs SIGABRT main.m

The class name in the Identity Inspector may indicate the name of a nonexistent class

0
source

because in initWithNibName you do not specify the correct xib name so that it crashes

0
source

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


All Articles