CommunityToolkit / CommunityToolkit/Maui

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

Open
#3,220 2 comments 0 reactions 0 assignees View on GitHub
bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

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

- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

### 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

```markdown
- 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

Contributor guide

Open the contributing guide

Research direction

Start by running the linked reproduction project on an M1 Mac with the MacCatalyst debug configuration and compare its CameraView behavior with the working iOS-device case. Trace where CameraView reports “No camera available on device,” then verify the platform-specific camera setup and permissions. Done means the camera is discoverable and usable on MacCatalyst without regressing iOS behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, macos
Domain
desktop-dev, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.