iOS Question Error with iBarCode in iPadOS 26 in iPad Air - App Logs from Appetize.IO

hatzisn

Expert
Licensed User
Longtime User
Good morning everyone,

I tried to upload an application to the appstore that uses the iBarCode lib in a B4X Lib (NHBarcode) and also these libraries:

1776766241821.png


I tried to upload it to the AppStoreConnect and in the review they replied that there is an error on iPad Air with iOS 26 when they press the scan button. I tried the app in appetize.io and I have got the following logs from there. I am not sure of what am I supposed to do (which library is causing the problem). Meanwhile in iOS 15 it is working flawlessly.

objc[69870]: Class _NoAnimationDelegate is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore (0x141e54130) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x1473f1198). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

objc[69870]: Class LACUISecureTextField is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/LocalAuthenticationCoreUI.framework/LocalAuthenticationCoreUI (0x17e1004b0) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/LocalAuthenticationEmbeddedUI (0x17db95320). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

objc[69870]: Class AKAlertImageURLProvider is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKit.framework/AuthKit (0x11b7d1ad8) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKitUI.framework/AuthKitUI (0x17a2a9938). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

objc[69870]: Class AKBiometricRatchetUtility is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKit.framework/AuthKit (0x11b7d3810) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKitUI.framework/AuthKitUI (0x17a2a99b0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

2026-04-21 11:59:54.292433+0200 DHQI Scanner[69870:1222586] [UIKit App Config] `UIScene` lifecycle will soon be required. Failure to adopt will result in an assert in the future.

2026-04-21 11:59:54.292532+0200 DHQI Scanner[69870:1222586] [UIKit App Config] Update the Info.plist: 1) `UIRequiresFullScreen` will soon be ignored. 2) Support for all orientations will soon be required.

2026-04-21 11:59:54.304382+0200 DHQI Scanner[69870:1222586] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.

2026-04-21 11:59:54.304848+0200 DHQI Scanner[69870:1222586] didFinishLaunchingWithOptions

2026-04-21 11:59:54.383418+0200 DHQI Scanner[69870:1222586] New events have been added and changed the old definition of the received data event !!! WATCH IT!!!!!

2026-04-21 11:59:54.384004+0200 DHQI Scanner[69870:1222586] CopyFromDBAssets scandb.db

2026-04-21 11:59:54.385092+0200 DHQI Scanner[69870:1222586] CopyFromDBAssets scandb.db

2026-04-21 11:59:54.386820+0200 DHQI Scanner[69870:1222586] Locale not found: en. Switching to 'en'.

2026-04-21 11:59:54.386861+0200 DHQI Scanner[69870:1222586] Device locale: en

2026-04-21 11:59:54.386936+0200 DHQI Scanner[69870:1222586] Found 0 strings.

2026-04-21 11:59:54.389119+0200 DHQI Scanner[69870:1222586] NSMapTable {

}

2026-04-21 11:59:54.648545+0200 DHQI Scanner[69870:1222586] Error starting scanner

2026-04-21 11:59:55.162590+0200 DHQI Scanner[69870:1222586]

objc[69870]: Class UIAccessibilityLoaderWebShared is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/WebCore.axbundle/WebCore (0x34d8a4310) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/WebKit.axbundle/WebKit (0x34d68c398). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

2026-04-21 12:00:06.264575+0200 DHQI Scanner[69870:1222586] [] <<<< FigCaptureSourceSimulator >>>> signalled err=-12784 at <>:259

2026-04-21 12:00:06.265083+0200 DHQI Scanner[69870:1222586] [] <<<< FigCaptureSourceSimulator >>>> signalled err=-12784 at <>:259

2026-04-21 12:00:06.265125+0200 DHQI Scanner[69870:1222586] [] <<<< FormatDescription >>>> signalled err=-12710 at <>:988

2026-04-21 12:00:06.265152+0200 DHQI Scanner[69870:1222586] [] (Fig) signalled err=-12710 at <>:601

2026-04-21 12:00:06.265533+0200 DHQI Scanner[69870:1222586] [] <<<< FormatDescription >>>> signalled err=-12710 at <>:988

2026-04-21 12:00:06.265565+0200 DHQI Scanner[69870:1222586] [] (Fig) signalled err=-12710 at <>:601

2026-04-21 12:00:06.265779+0200 DHQI Scanner[69870:1222586] [] <<<< FormatDescription >>>> signalled err=-12710 at <>:988

2026-04-21 12:00:06.265799+0200 DHQI Scanner[69870:1222586] [] (Fig) signalled err=-12710 at <>:601

2026-04-21 12:00:06.265825+0200 DHQI Scanner[69870:1222586] [] <<<< FigCaptureSourceSimulator >>>> signalled err=-12784 at <>:259

2026-04-21 12:00:06.265843+0200 DHQI Scanner[69870:1222586] [] <<<< FigCaptureSourceSimulator >>>> signalled err=-12784 at <>:259

2026-04-21 12:00:06.270323+0200 DHQI Scanner[69870:1222586] [] <<<< FigCaptureSessionSimulator >>>> signalled err=-12782 at <>:297

2026-04-21 12:00:06.275840+0200 DHQI Scanner[69870:1222586] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureSession addInput:] Can't add a nil AVCaptureInput'

*** First throw call stack:

(

0 CoreFoundation 0x000000010618d9e8 __exceptionPreprocess + 172

1 libobjc.A.dylib 0x0000000103668084 objc_exception_throw + 72

2 AVFCapture 0x0000000126603ea0 -[AVCaptureSession addInput:] + 880

3 DHQI Scanner 0x00000001029db8ec -[MTBBarcodeScanner setDeviceInput:session:] + 496

4 DHQI Scanner 0x00000001029dafc4 -[MTBBarcodeScanner newSessionWithCaptureDevice:] + 132

5 DHQI Scanner 0x00000001029da4dc -[MTBBarcodeScanner startScanningWithResultBlock:] + 132

6 DHQI Scanner 0x00000001029d9f14 -[iBarcode Start] + 76

7 DHQI Scanner 0x00000001029c7ba8 -[b4i_nhbarcode _startscanning] + 888

8 DHQI Scanner 0x0000

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureSession addInput:] Can't add a nil AVCaptureInput'

*** First throw call stack:

(

0 CoreFoundation 0x000000010618d9e8 __exceptionPreprocess + 172

1 libobjc.A.dylib 0x0000000103668084 objc_exception_throw + 72

2 AVFCapture 0x0000000126603ea0 -[AVCaptureSession addInput:] + 880

3 DHQI Scanner 0x00000001029db8ec -[MTBBarcodeScanner setDeviceInput:session:] + 496

4 DHQI Scanner 0x00000001029dafc4 -[MTBBarcodeScanner newSessionWithCaptureDevice:] + 132

5 DHQI Scanner 0x00000001029da4dc -[MTBBarcodeScanner startScanningWithResultBlock:] + 132

6 DHQI Scanner 0x00000001029d9f14 -[iBarcode Start] + 76

7 DHQI Scanner 0x00000001029c7ba8 -[b4i_nhbarcode _startscanning] + 888

8 DHQI Scanner 0x00000001029bc3e4 -[b4i_main _button1_click] + 44

9 CoreFoundation 0x00000001061943b0 __invoking___ + 144

10 CoreFoundation 0x000000010619155c -[NSInvocation invoke] + 276

11 DHQI Scanner 0x0000000102a009ac +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 776

12 DHQI Scanner 0x0000000102a004b4 -[B4I raiseEvent:event:params:] + 292

13 DHQI Scanner 0x0000000102a00380 __33-[B4I raiseUIEvent:event:params:]_block_invoke + 24

14 libdispatch.dylib 0x00000001070d17a8 _dispatch_call_block_and_release + 24

15 libdispatch.dylib 0x00000001070ec4b0 _dispatch_client_callout + 12

16 libdispatch.dylib 0x00000001071084a0 _dispatch_main_queue_drain.cold.7 + 24

17 libdispatch.dylib 0x00000001070e131c _dispatch_main_queue_drain + 1184

18 libdispatch.dylib 0x00000001070e0e6c _dispatch_main_queue_callback_4CF + 40

19 CoreFoundation 0x00000001060e7010 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12

20 CoreFoundation 0x00000001060e61e8 __CFRunLoopRun + 1884

21 CoreFoundation 0x00000001060e0e24 _CFRunLoopRunSpecificWithOptions + 496

22 GraphicsServices 0x0000000118d1a9bc GSEventRunModal + 116

23 UIKitCore 0x0000000145ec1c3c -[UIApplication _run] + 772

24 UIKitCore 0x0000000145ec5e64 UIApplicationMain + 124

25 DHQI Scanner 0x000000010291d38c main + 100

26 dyld 0x0000000102ed13d0 start_sim + 20

27 ??? 0x0000000102c66b98 0x0 + 4341525400

)

libc++abi: terminating due to uncaught exception of type NSException
 

b4x-de

Active Member
Licensed User
Longtime User
Possible cause for this: the camera could not be initialized successfully. In that case the native code fails to create a valid AVCaptureDeviceInput, so the scanner later tries to add a nil input to the AVCaptureSession, which leads to the exception.

Make sure the app is not missing the required camera usage description in the iOS plist. On iOS, camera access must be declared in the plist, otherwise access can fail or the scanner setup can break before a valid capture input is created. B4i supports plist additions with #PlistExtra in the project attributes.

Before starting the scanner, I would explicitly check the camera authorization status in B4i code
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Possible cause for this: the camera could not be initialized successfully. In that case the native code fails to create a valid AVCaptureDeviceInput, so the scanner later tries to add a nil input to the AVCaptureSession, which leads to the exception.

Make sure the app is not missing the required camera usage description in the iOS plist. On iOS, camera access must be declared in the plist, otherwise access can fail or the scanner setup can break before a valid capture input is created. B4i supports plist additions with #PlistExtra in the project attributes.

Before starting the scanner, I would explicitly check the camera authorization status in B4i code

Thank you for answering,

I have this code in the #PListExtra

B4X:
#PlistExtra:<key>NSCameraUsageDescription</key><string>This application uses your phone camera to scan barcodes</string>

Indeed, in my iPhoneSE it is asking while starting for the very first time permission to use the camera, while trying it in appetize.io it is not. I see these logs in iPhone 17 iOS 26 in appetize.io. Maybe the message underneath the "Error starting scanner" is the problem?

objc[50021]: Class _NoAnimationDelegate is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore (0x143ee0130) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x149be9198). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

objc[50021]: Class LACUISecureTextField is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/LocalAuthenticationCoreUI.framework/LocalAuthenticationCoreUI (0x17f8b44b0) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/LocalAuthenticationEmbeddedUI (0x17d899320). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

objc[50021]: Class AKAlertImageURLProvider is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKit.framework/AuthKit (0x11d649ad8) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKitUI.framework/AuthKitUI (0x17eb9d938). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

objc[50021]: Class AKBiometricRatchetUtility is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKit.framework/AuthKit (0x11d64b810) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKitUI.framework/AuthKitUI (0x17eb9d9b0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

2026-04-22 02:56:03.461630+0200 DHQI Scanner[50021:5185230] [UIKit App Config] `UIScene` lifecycle will soon be required. Failure to adopt will result in an assert in the future.

2026-04-22 02:56:03.465016+0200 DHQI Scanner[50021:5185230] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.

2026-04-22 02:56:03.465737+0200 DHQI Scanner[50021:5185230] didFinishLaunchingWithOptions

2026-04-22 02:56:03.551185+0200 DHQI Scanner[50021:5185230] New events have been added and changed the old definition of the received data event !!! WATCH IT!!!!!

2026-04-22 02:56:03.551549+0200 DHQI Scanner[50021:5185230] CopyFromDBAssets scandb.db

2026-04-22 02:56:03.552393+0200 DHQI Scanner[50021:5185230] CopyFromDBAssets scandb.db

2026-04-22 02:56:03.554326+0200 DHQI Scanner[50021:5185230] Locale not found: en. Switching to 'en'.

2026-04-22 02:56:03.554349+0200 DHQI Scanner[50021:5185230] Device locale: en

2026-04-22 02:56:03.554399+0200 DHQI Scanner[50021:5185230] Found 0 strings.

2026-04-22 02:56:03.556469+0200 DHQI Scanner[50021:5185230] NSMapTable {

}

2026-04-22 02:56:03.764486+0200 DHQI Scanner[50021:5185230] Error starting scanner

objc[50021]: Class UIAccessibilityLoaderWebShared is implemented in both /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/WebCore.axbundle/WebCore (0x3437a0310) and /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 26.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/WebKit.axbundle/WebKit (0x343634398). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

2026-04-22 02:56:04.312456+0200 DHQI Scanner[50021:5185230]
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Upvote 0
Top