• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?


  • Subject: Re: iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?
  • From: Clark Smith Cox III <email@hidden>
  • Date: Mon, 06 Apr 2015 10:47:06 -0700

> On Apr 6, 2015, at 07:52, Alex Zavatone <email@hidden> wrote:
>
> I'm running into an interesting issue I'm trying to track down under iOS 7 and 8.  (Xcode 6.2, Mac OS 10.10.2)
>
> Our app downloads files and saves them within the app for display later when the user wants to bring them up.
>
> It appears that after the first launch, the files can't be found.
>
> Does the application path change upon subsequent launches as a result of iOS sandboxing?

Your application cannot rely on the path to itself to remain consistent across launches. This has *always* been the case on both the device and in the simulator.

> I'm looking into how we are getting our files' path at the moment and I just wanted to know for sure if I should expect the file path to the application's Documents folder to change under iOS 7/8 under each launch.

It might not change *every* launch, but you should expect that it *could* change between any two launches.

--
Clark Smith Cox III
email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch? (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Where is my bicycle?
  • Next by Date: Re: Where is my bicycle?
  • Previous by thread: Re: iOS 7/8 sandboxing question. Path to Documents folder changing on every app launch?
  • Next by thread: Where is my bicycle?
  • Index(es):
    • Date
    • Thread