On your iPhone
Settings > General > iPhone Storage

On your desktop
Settings > General

The amount of storage your iPhone’s taking up (red box) needs to be smaller than the amount of storage available on your desktop (purple box).
In this example (my phone!), you can see I need a hard drive with at least 68.7GB available