iOS 5.0.1 : How to verify that the folder is marked as "Do not back up" for iCloud?
- open simulator
- delete the app (the app review team runs the code 1 time through, so be sure you are starting from scratch)
- now run your code in simulator, your code will store your files on your harddrive.
- open up terminal
- cd /Users/(user name)/Library/Application Support/iPhone Simulator/(ios version)/Applications
- ls
- you will be presented with a list of random folder names, open each one until you find your app folder
- for file in $(find *); do du -sk $file; xattr -l $file; echo ; done
- you will be presented with all of the files in the app in the format of..
(filesize) (filename)
(iCloud backup exclusion)
NOTE: if nothing is listed, that means the file will be backed up (if its in the Library or Documents folder).. if instead you see 'com.apple.metadata:com_apple_backup_excludeItem: com.apple.MobileBackup' then you're good to go.