AppData doesn't contain the same file size as the iphone storage

Hello,

I am developing an app and i saw after few days of use that i had 3Go of "user data" in my iphone storage. I wanted to know exactly what was taking that much space on the disk since i was doing such an heavy work there, so i have downloaded the "container" from the Xcode organizer and i have open my app data by right clicking on "Show package content".

Then i compressed the whole directory (AppData) to check its size and i saw 400Mo which is actually representing the things i am storing.

Then i was browsing the whole content and saw all the files i have saved myself where i saved them so it's very fine.

However, the 2.5Go left are a pure mystery. Is it a bug ? How can i know what is taking that much space on my app on my phone please ?

I can't let my users have an infinite growing storage without knowing what's going on...

Thanks a lot in advance, Tom

Then i compressed the whole directory (AppData) to check its size and i saw 400Mo which is actually representing the things i am storing.

I don’t understand your logic here. If the data is highly compressible, the size of the compressed archive could easily be 10 times smaller than the size of the original data.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Sorry i should not have said i have compressed it my mistake. Without compression it's 463Mo and with compression is 413 so the difference is actually almost null and not relevant here anyway you are right.

OK, here’s a trick you can try here: Add a debug UI item to your app that triggers code that walks the app’s container and prints every file it finds and its size. This should match up with the container you download from Xcode.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for the reply and the suggestion, but i a very confident that it actually shows the same as my container from Xcode because i have walked through it with my own eyes file by file and saw everything i did in my app as a user. So i "know" that this is correct and my app storage should be 463Mo.

I simply wonder why my iphone storage is showing 3Go+ for my app then and this is the thing i would like to explore but i have no idea how or where to start...

Recently a colleague pointed me at the Disk Space Diagnostics (FSMetadata) profile that’s available on our Bug Reporting > Profiles and Logs page. That’s super cool for investigating issues like this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

AppData doesn't contain the same file size as the iphone storage
 
 
Q