Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddiOSDevice

Method
📦 Aspire.Hosting.Maui v17.0.0-preview.1.26565.2
func (MauiProjectResource) 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().

Applies to

This method applies to the following types: