def get_destination(
        cls,
        device: Device,
    ) -> str:
        """
        Get the destination string for ``xcodebuild`` based on the device type.

        Parameters
        ----------
        device : Device
            The target device for which the destination string is being determined.

        Returns
        -------
        str
            The destination string to use for the ``xcodebuild`` command.
        """
        if device.type == DeviceType.MAC:
            return f"platform=macOS,arch=arm64,x86_64,id={device.udid}"
        elif device.type == DeviceType.IPHONE:
            return f"platform=iOS,id={device.udid}"
        elif device.type == DeviceType.IPAD:
            return f"platform=iOS,id={device.udid}"
        elif device.type == DeviceType.WATCH:
            return f"platform=watchOS,arch=arm64_32,id={device.udid}"
        else:
            raise ValueError(f"No destination for device={device}, type = {device.type}")

        Get the destination string for ``xcodebuild`` based on the device type.

        Parameters
        ----------
        device : Device
            The target device for which the destination string is being determined.

        Returns
        -------
        str
            The destination string to use for the ``xcodebuild`` command.
        
coremltools/models/ml_program/experimental/remote_device.py