iOS Question Problem with debugging

Filippo

Expert
Licensed User
Longtime User
Hi,

the app is compiled without error in debug mode, but on startup it crashes with this error message.
How am I supposed to find an error when an error like this is displayed during debugging?
There should be some more information here.

1679943426338.png


Application_Start
Error occurred on line: 83 (Main)
Target is null. Method called: _initialize:::
Stack Trace: (
CoreFoundation DD8145FF-7279-3C33-9B3F-0DA5541DD7F9 + 39472
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation DD8145FF-7279-3C33-9B3F-0DA5541DD7F9 + 975676
MoR +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 164
MoR -[B4ICustomViewWrapper AfterDesignerScript] + 1628
MoR -[B4ILayoutBuilder loadLayout:::] + 2228
MoR -[B4IPanelWrapper LoadLayout::] + 188
MoR -[b4i_main _application_start:] + 992
CoreFoundation DD8145FF-7279-3C33-9B3F-0DA5541DD7F9 + 458128
CoreFoundation DD8145FF-7279-3C33-9B3F-0DA5541DD7F9 + 128216
MoR +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1400
MoR -[B4IShell runMethod:] + 420
MoR -[B4IShell raiseEventImpl:method:args::] + 1968
MoR -[B4IShellBI raiseEvent:event:params:] + 1360
MoR __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib 9FA81DCE-81CF-3E8B-A1BB-FB64744769B2 + 407632
libdispatch.dylib 9FA81DCE-81CF-3E8B-A1BB-FB64744769B2 + 411592
libdispatch.dylib 9FA81DCE-81CF-3E8B-A1BB-FB64744769B2 + 286488
libdispatch.dylib 9FA81DCE-81CF-3E8B-A1BB-FB64744769B2 + 285584
CoreFoundation DD8145FF-7279-3C33-9B3F-0DA5541DD7F9 + 604184
CoreFoundation DD8145FF-7279-3C33-9B3F-0DA5541DD7F9 + 488600
CoreFoundation CFRunLoopRunSpecific + 584
GraphicsServices GSEventRunModal + 160
UIKitCore 15E101FA-5FF2-39A4-8983-3819CBA1F11D + 3626552
UIKitCore UIApplicationMain + 312
MoR main + 100
dyld EB7391E7-74A5-32DD-8D17-CA86BACE9C2C + 81392
)
Application_Active

or does the line 83 have to do with this file?
1679944530589.png
 

Filippo

Expert
Licensed User
Longtime User
The error happens in the designer script.
I have found the layout with the error.
With about 20 layouts it is not so easy to find the error, especially if you open the layouts with the disgner and no error message is displayed.
It would be nice if the compiler would display the layout name that causes the error.

In any case, thank you for the answer.
 
Upvote 0
Top