I have an app that was created a few years ago. It's been working fine and today I attempted to run a debug version and it failed. A release version failed too.
Line 18 is below and I don't understand why it's failing on that line.
I haven't changed anything since the last time it compiled. I'm using 4.81 and my iPhone is 11.3.
B4X:
Application_Start
Error occurred on line: 18 (Main)
Expected: UIImageView, object type: UIButton
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Wi-Score -[B4IObjectWrapper setObject:] + 280
Wi-Score -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 3312
Wi-Score -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 4836
Wi-Score -[B4ILayoutBuilder loadLayout:::] + 2028
Wi-Score -[B4IPanelWrapper LoadLayout::] + 204
Wi-Score -[b4i_main _application_start:] + 3804
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 284
Wi-Score +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
Wi-Score -[B4IShell runMethod:] + 448
Wi-Score -[B4IShell raiseEventImpl:method:args::] + 1784
Wi-Score -[B4IShellBI raiseEvent:event:params:] + 1408
Wi-Score __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1012
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 2272
CoreFoundation CFRunLoopRunSpecific + 552
GraphicsServices GSEventRunModal + 100
UIKit UIApplicationMain + 236
Wi-Score main + 124
libdyld.dylib <redacted> + 4
)
Application_Active
B4X:
#PlistExtra:<key>NSPhotoLibraryUsageDescription</key><string>Select your photo.</string>
I haven't changed anything since the last time it compiled. I'm using 4.81 and my iPhone is 11.3.