• 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
iOS 8: New file system access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS 8: New file system access


  • Subject: iOS 8: New file system access
  • From: Beinan Li <email@hidden>
  • Date: Tue, 19 Aug 2014 15:16:56 -0400

Hi Xcode,

I read from the iOS 8 release notes that:

"""
The file system layout of app containers has changed on disk. Rather than relying on hard-coded directory structure, use the NSSearchPathForDirectoriesInDomains function or the URLForDirectory:inDomain:appropriateForURL:create:error: method of the NSFileManager class. See Accessing Files and Directories in File System Programming Guide.
"""

Our app embeds a data folder at the root folder of the app bundle and 
it used to work fine with string paths based on [[NSBundle mainBundle] resourcePath] 
and the standard POSIX file IO C API. 

It stopped working with iOS 8 (File Not Found). 
Is it related to the layout change claimed in the release notes?

If so, is there any sample code on the new workflow mentioned in the release notes?
The new APIs look more like the Mac file system layout, e.g., the directories listed in the domain mask, and it seems to imply a search to locate files of given names.  
I'm puzzled as to where to start, e.g., where are my data folder in the app bundle located on the device now? Do I have to search to access it every time?

Thanks,
Beinan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iOS 8: New file system access
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Using canned pcre
  • Next by Date: Re: iOS 8: New file system access
  • Previous by thread: Shared File Names, Different Targets
  • Next by thread: Re: iOS 8: New file system access
  • Index(es):
    • Date
    • Thread