This question has been asked before, but the solutions provided didn't work. Maybe they are outdated and this will be useful to other users too.
I have Ubuntu 18.10 and an iPad 2018 with iOS 12.1.
I'd like to easily transfer files like here. However when I click on "Documents on My iPad" I get an error
Unable to access Documents on My iPad // Unhandled lockdown error (-2)
I've tried solutions such as this, but when I do idevicepair pair
I get an error:
ERROR: Device 00008027001E70423A22002E returned unhandled error code -5
I also tried, as suggested here,
sudo mkdir /var/lib/lockdown
sudo chmod 777 /var/lib/lockdown
But that it still isn't working.