Persistent storage includes Bundle Resources?

I wanted to port my game to Apple TV, which has some files in the bundle resources (music, sound effects, etc), all of the files are more than 1MB in size. For example, the game music is 3MB MP3 file.


However, I have read that there are no persistent storage, so does that mean I cannot simply store those music and images in bundle resources anymore and instead need to use cloud storage for everything?


That means that the code below won't work anymore? (loading sound from main bundle)


- (AVAudioPlayer *) addSound:(NSString *)sound type:(NSString *)type {
  return [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:sound ofType:type]] error:nil];
}

The bundle resources are shipped with the app. The limitation is on writing persistent document data.


So you can't store a game save file in documents anymore. You can write to the caches directory, but those files can be deleted at any time by tvOS.

Thanks for replying, but this seems to contradict many things I am reading. For example, in http://www.appcoda.com/tvos-introduction/


"This is very different from that on iOS because you cannot have images, graphics, etc that are over 1MB in size."

If you are right, then what is the limit per file? Assuming I stay within the limit of 200MB, can I have says video files that are 20MB big? 50MB?

Persistent storage includes Bundle Resources?
 
 
Q