Where is 'Allows External Storage' data actually stored?

I have created a helper app to pre-populate a Core Data sqlite store. I then drag that store across to my actual app and hey presto, default data! In my helper app I am loading a photo for each location entity and storing that image as binary data with the ‘Allows External Storage’ flag set. As expected (unfortunately) this image data is left behind somewhere when I drag the data store across to the second app. All other entities, relationships and data transfer across fine.

I’m using Swift 3 and Xcode 8 beta 6. If anyone could point me to where the externally stored binary data is located I’d appreciate it.

Finally found it so thought I’d record it here. It’s in a hidden folder in the same folder as the LocalStore.sqlite file is found.

.LocalStore_SUPPORT/_EXTERNAL_DATA/

1 Like