Skip to content

[BUG] MacCatalyst unable to invoke m1 mac book camera : 'No camera available on device #3220

Description

@jingliancui

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Mac book m1's camera can not be show when using CameraView

Expected Behavior

Mac book m1's camera should be show when using CameraView

Steps To Reproduce

  1. download the repo source
  2. open with vscode
  3. set the debug config to mac catalyst
  4. debug it

Link to public reproduction project repository

https://github.com/jingliancui/MAUICTCameraViewIssue

Environment

- CommunityToolkit.Maui.Camera:6.0.1
- OS:Mac M1:Tohoe 26.4.1
- .NET MAUI:10.0.60

Anything else?

error message:

Exception has occurred: CLR/CommunityToolkit.Maui.Core.CameraException
An unhandled exception of type 'CommunityToolkit.Maui.Core.CameraException' occurred in Microsoft.MacCatalyst.dll: 'No camera available on device'
   at UIKit.UIApplication.xamarin_UIApplicationMain(Int32 argc, IntPtr argv, IntPtr principalClassName, IntPtr delegateClassName, IntPtr* gchandle)
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName)
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass)
   at XXXClient.Program.Main(String[] args) in 

other info:
The camera can run fine when the app run in iOS device

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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