MauiProjectResource.AddiOSDevice

Method
📦 Aspire.Hosting.Maui v17.0.0-preview.1.26567.5
type MauiProjectResource interface {
// ... omitted for brevity
AddiOSDevice(
name string,
options ...*AddiOSDeviceOptions,
) MauiiOSDeviceResource
}

Signature

methodAddiOSDevicebuilder
Adds an iOS physical device resource to run the MAUI application on an iOS device with a specific name and device UDID.
AddiOSDevice(
name string,
options ...*AddiOSDeviceOptions,
) MauiiOSDeviceResource
namestringThe name of the iOS device resource.
options...*AddiOSDeviceOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddiOSDeviceOptions argument.

DeviceId*stringOptional device UDID to target a specific iOS device. If not specified, uses the only attached device (requires exactly one device to be connected).
MauiiOSDeviceResource

The resource builder.

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

Defined on

This method is defined on the following type: