def list_app(self, type="user"):
        """
        Returns a list of installed applications on the device.

        Args:
            type (str, optional): The type of applications to list. Defaults to "user".
                Possible values are "user", "system", or "all".

        Returns:
            list: A list of tuples containing the bundle ID, display name,
                and version of the installed applications.
            e.g. [('com.apple.mobilesafari', 'Safari', '8.0'), ...]

        Raises:
            LocalDeviceError: If the device is remote.
        """
        if not self.is_local_device:
            raise LocalDeviceError()
        return TIDevice.list_app(self.udid, app_type=type)

        Returns a list of installed applications on the device.

        Args:
            type (str, optional): The type of applications to list. Defaults to "user".
                Possible values are "user", "system", or "all".

        Returns:
            list: A list of tuples containing the bundle ID, display name,
                and version of the installed applications.
            e.g. [('com.apple.mobilesafari', 'Safari', '8.0'), ...]

        Raises:
            LocalDeviceError: If the device is remote.
        
airtest/core/ios/ios.py