Вопрос

iTunes file sharing works by exposing all the files in /Documents

But I would want to explicitly exclude certain files. Is this possible?

UPDATED:

Specifically, one of my ad network SDK is storing a mraid.js in Documents.

Это было полезно?

Решение

If you don't want a file shared, don't store it in the Documents folder. Use the Application Support folder for example.

Another option is that iTunes won't show any files or folders from the Documents folder that start with a dot. You could rename the files you don't want to share with a dot or put them in a subfolder whose name begins with a dot.

Другие советы

Try looking at This Question. Also, depending on what you are storing, you can try using the NSUserDefaults instead.

There is no way to exclude files from File Sharing.

The files you need to share should be put under Documents directory and the files which you don't want to share should be kept in other directories. It'll solve the issue.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top