Oops, I somehow missed the second commit. See all changes from the related PR:
https://github.com/libimobiledevice/libimobiledevice/pull/1616/files Not sure if it applies fine on the libimobiledevice version used in Debian (Ubuntu), but it seems to apply fine in Fedora that uses build based on commit ed9703d (from 20240916): https://src.fedoraproject.org/rpms/libimobiledevice/blob/rawhide/f/libimobiledevice.spec#_2 https://src.fedoraproject.org/rpms/libimobiledevice/c/14b7b1c5868e204ef0fd8ff9807b323a08409ac7