0

I've downloaded the sandbox of my APP from a connected test device using Xcode. After opening it using "finder", I see the following folders as expected.

Documents
Library 
StoreKit
tmp

But when I look into the above directories I can find none of the files that are used by the APP. For example, the APP uses over 40 jpg files, why are they not being shown inside the downloaded sandbox package at all?

Stanley
  • 4,446
  • 7
  • 30
  • 48
  • 1
    Are the jpg files bundled with the app? If so they aren't part of the sandbox, they're part of the application. – Phillip Mills Sep 07 '17 at 13:50
  • This could be the reason ... I haven't explicitly put the jpg files into the sandbox. So the jpg files would never be shown in the sandbox unless they have been put into it explicitly? – Stanley Sep 07 '17 at 14:39
  • Yes, like I said, if they were distributed as part of the app they're in its bundle, not the sandbox. The app is readonly; the sandbox is read/write. – Phillip Mills Sep 07 '17 at 14:53
  • How do you explicitly put files into an iOS sandbox? – Stanley Sep 07 '17 at 15:04
  • I think you're looking for something like this: https://stackoverflow.com/questions/44434428/swift-3-copy-folder-w-contents-from-main-bundle-to-documents-directory – Phillip Mills Sep 07 '17 at 17:13
  • Thanks for the link. If you have something similar in objective-c, it would also be very useful. – Stanley Sep 07 '17 at 19:49

1 Answers1

0

As Philip Mills has suggested, it is normal not to have the jpg files in the sandbox folders as they are bundled in the app.

Files need to be explicitly put in the sandbox folders in order to be there.

Stanley
  • 4,446
  • 7
  • 30
  • 48