Skip to content

ios - on front camera selection app is crashing on init #21

@roitnaidu23

Description

@roitnaidu23

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureDevice setTorchMode:] The passed torchMode 2 is not supported - use -isTorchModeSupported: to discover valid torch modes'
*** First throw call stack:
(0x1a81cd86c 0x1bd1e8c50 0x1c253fca4 0x1011db5d0 0x1011dc41c 0x1011dc150 0x1011daf1c 0x1011d96f8 0x1a7dc1db0 0x1a7dc512c 0x1a7dd6c08 0x1a7dcf694 0x1a814911c 0x1a8143120 0x1a814221c 0x1bfd0e784 0x1aab82ee8 0x1aab8875c 0x1002e010c 0x1a7e026b0)
libc++abi.dylib: terminating with uncaught exception of type NSException

  • thread How to stream camera and preview Camera stream is you have any idea please tell me #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001d6122414 libsystem_kernel.dylib__pthread_kill + 8 libsystem_kernel.dylib__pthread_kill:
    -> 0x1d6122414 <+8>: b.lo 0x1d6122434 ; <+40>
    0x1d6122418 <+12>: pacibsp
    0x1d612241c <+16>: stp x29, x30, [sp, #-0x10]!
    0x1d6122420 <+20>: mov x29, sp
    Target 0: (Runner) stopped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions