iOS Question LL Camera Example Crash [SOLVED]

JohnC

Expert
Licensed User
Longtime User
I'm running iOS 11.4.1 and I downloaded the LL Camera Example from here:


I simply unzipped the example and tried to run it as-is.

The background of the app quickly appears black, then the app crashes with this log:

B4X:
Application_Start
SignalHandler 6
Application_Active
Error occurred on line: 71 (Main)
Signal - 6
Stack Trace: (
    "0   B4i Example          SignalHandler + 120",
    "1   libsystem_platform.dylib            0x0000000180f80b48 _sigtramp + 36",
    "2   libsystem_kernel.dylib              0x0000000180dde938 <redacted> + 100",
    "3   libsystem_kernel.dylib              0x0000000180dde964 system_set_sfi_window + 0",
    "4   TCC                  <redacted> + 0",
    "5   TCC                  <redacted> + 0",
    "6   TCC                  <redacted> + 296",
    "7   libxpc.dylib         <redacted> + 60",
    "8   libxpc.dylib         <redacted> + 88",
    "9   libdispatch.dylib    <redacted> + 16"
)

Any ideas whats going wrong?

Might it be with camera permission because I would have expected a pop-up asking if the app can use the camera (in order to show the preview), but nothing popped up.
 

JohnC

Expert
Licensed User
Longtime User
Well, my hunch was correct - I needed to add this line in the Project Attributes of the example to allow for the permission:

B4X:
#PlistExtra:<key>NSCameraUsageDescription</key><string>Taking a photo and attach to the task.</string>

(should the posted example be updated to have this line in it?)
 
Upvote 0
Top