I think this happens if Joplin is closed while downloading a resource.
If everything is up-to-date on the server, you can try clearing the device's local data and re-downloading everything. I think the only way to do this on iOS is uninstalling and reinstalling the app.
See also Bug report: Attachments not syncing - #7 by myfta .