def install_app(self, file_or_url, **kwargs):
        """
        curl -X POST $JSON_HEADER \
        -d "{\"desiredCapabilities\":{\"bundleId\":\"com.apple.mobilesafari\", \"app\":\"[host_path]/magicapp.app\"}}" \
        $DEVICE_URL/session
        https://github.com/facebook/WebDriverAgent/wiki/Queries

        Install app from the device.

        Args:
            file_or_url: file or url to install

        Returns:
            bundle ID

        Raises:
            LocalDeviceError: If the device is remote.
        """
        if not self.is_local_device:
            raise LocalDeviceError()
        return TIDevice.install_app(self.udid, file_or_url)

        curl -X POST $JSON_HEADER         -d "{"desiredCapabilities":{"bundleId":"com.apple.mobilesafari", "app":"[host_path]/magicapp.app"}}"         $DEVICE_URL/session
        https://github.com/facebook/WebDriverAgent/wiki/Queries

        Install app from the device.

        Args:
            file_or_url: file or url to install

        Returns:
            bundle ID

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