ios-control / ios-deploy

Install and debug iPhone apps from the command line, without using Xcode
GNU General Public License v3.0
3.42k stars 468 forks source link

Upload Changed Files #504

Open Jbudone opened 3 years ago

Jbudone commented 3 years ago

--upload isn't a scalable solution for larger uploads (eg. directories with many large files). Ideally it could perform some hash comparison, similar to rsync, and only upload differing/missing files

gabebear commented 3 years ago

What is your use-case? There is incremental support for the files in the app's bundle(same as Xcode) using --app_deltas. You must specify a directory when using --app_deltas for the bookkeeping files created to know what is on the device.

Jbudone commented 3 years ago

From my understanding --app_deltas is tied to the bundle to be installed. Since there's a limit on a bundle's size, that prevents us from including our full cache in the app bundle, so we're forced to upload the remaining cache left out of the bundle

Jbudone commented 3 years ago

Alternatively, having a way to fetch hashes could enable users to script their own diff/upload process to only upload files w/ differing hashes

This isn't as easy as uploading a hash manifest since those files could be modified on the phone, which means needing to maintain the manifest from the app too