# MauiProjectResource.AddMacCatalystDevice

- Module: [Aspire.Hosting.Maui](/reference/api/go/aspire.hosting.maui.md)
- Defined on: [MauiProjectResource](/reference/api/go/aspire.hosting.maui/mauiprojectresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Adds a Mac Catalyst device resource to run the MAUI application on the macOS platform with a specific name.

## Remarks

This method creates a new Mac Catalyst platform resource that will run the MAUI application
targeting the Mac Catalyst platform using `dotnet run`. The resource does not auto-start
and must be explicitly started from the dashboard by clicking the start button.
You can add multiple Mac Catalyst device resources to a MAUI project by calling this method multiple times with different names.

## Definition

```go
type MauiProjectResource interface {
    // ... omitted for brevity
    AddMacCatalystDevice(name string) MauiMacCatalystPlatformResource
}
```

## Signature

```go
AddMacCatalystDevice(name string) MauiMacCatalystPlatformResource
```

## Parameters

- `name` (`string`) -- The name of the Mac Catalyst device resource.

## Returns

[`MauiMacCatalystPlatformResource`](/reference/api/go/aspire.hosting.maui/mauimaccatalystplatformresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [MauiProjectResource](/reference/api/go/aspire.hosting.maui/mauiprojectresource.md) -- `handle`
