ios - AVPlayer cannot play cached songs after app update. Why? -


my app caches songs music service offline playback. saved subdirectory under nssearchpathfordirectoriesindomains(nscachesdirectory, nsuserdomainmask, yes). have code in didfinishlaunchingwithoptions routine verify cached files still there , validates nsdictionary maps track ids local path.

i haven't experienced issues with, upon rollout of updated version through appstore - avplayer stopped playing these cached songs. following i've checked:

  • downloaded songs still there in cache folder
  • no errors in log
  • app doesn't crash
  • on ui see them marked cached means "cleanup" routine found them on device
  • non-cached songs play fine
  • newly cached songs play fine well

what possibly issue here?

it took me long time figure out, basically: app guids change upon ios app updates , had full path stored in dictionary of cached songs!


Comments