Skip to content

Conversation

zemanj
Copy link

@zemanj zemanj commented Jul 24, 2025

Fixes #593.

According to libimobiledevice issue 193 from 2015 (in particular, this comment), the service com.apple.mobile.house_arrest doesn't support the VendContainer command anymore (unless the app was installed via XCode).
However, for apps that have UIFileSharingEnabled set to true in their information property list, the VendDocuments command can be used instead to access the app's /Documents directory.

This PR replaces VendContainer by VendDocuments to make this work.

Note that when using the go-iOS fsync command with the option --app=BUNDLE_ID set, the PATH passed with the option --path=PATH has to start with /Documents (in particular, / won't work).
For example, to use the fsync tree command for a specific app, one has to call ios fsync --app=BUNDLE_ID tree --path=/Documents.

@zemanj zemanj changed the title Fix fsync with --app=bundleId (fixes #5) Fix fsync with --app=bundleId (fixes #593) Jul 24, 2025
@zemanj zemanj changed the title Fix fsync with --app=bundleId (fixes #593) Fix fsync with --app=bundleId Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"ios fsync --udid=<udid> --app=<bundleID> tree --path=/Documents" throw error "fsync: connect afc service failed"
1 participant