문제

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