Questions tagged [nslibrarydirectory]
8 questions
6
votes
2 answers
Files disappearing from NSLibraryDirectory
I'm storing some files in the Library directory in an iOS app, using the following methods to construct it. In the end, I can call [MyClass dataDirectory] to do my file handling and all is well. I've recently discovered, however, that some files…

brandonscript
- 68,675
- 32
- 163
- 220
2
votes
2 answers
Saved files no longer exists after closing the app
I am downloading a file using NSURLSessionDownloadTask. it get downloaded and saved. and I can display data normally.
Unfortunitly I only have the iOS simulator to test. What is happenning if I close the app with the stop button on Xcode. then I…

hasan
- 23,815
- 10
- 63
- 101
1
vote
1 answer
No such file or directory, NSFilePath=~/Library
The below quoted error gets thrown when I run the following code snippet
fileManager.contentsOfDirectoryAtPath(libraryPath)
Error
Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be
completed. (Cocoa error 260.)"…

Durai Amuthan.H
- 31,670
- 10
- 160
- 241
0
votes
2 answers
How to store private file on iOS safely
on Android, i can store files into a fairly-protected file by using Context.openfileoutput. it'll save to internal disk that is specific to my app, which isn't accessible to other apps, and the only way to get this is via connecting debugger/rooting…

David T.
- 22,301
- 23
- 71
- 123
0
votes
1 answer
How should iOS app data files for new app version be moved from NSDocumentDirectory to NSLibraryDirectory?
In the current version of my app, I have stored two important app files (my Core Data .sqlite file and my SettingsFile.plist) in the NSDocumentDirectory. In the next version, I want to move these files to the NSLibraryDirectory. Neither needs to be…

SAHM
- 4,078
- 7
- 41
- 77
0
votes
2 answers
How to hide SQLite db files so they are not seen in iTunes file sharing
I have file sharing enabled on my app and so, when you view the documents folder in iTunes, there are the Core Data sqlite files siting there just waiting to be fiddled with by the user.
I have found a few discussions on this but, surprisingly, no…

Aroniousness
- 149
- 10
0
votes
2 answers
How can I delete from NSDocumentDirectory from the device (not from code)?
There are plenty of answers on how to delete NSDocumentDirectory via code. Unfortunately, that's not what I'm looking for here.
I need a way to delete this from the device. Is there any way short of wiping the entire device and setting it up as a…

chris P
- 6,359
- 11
- 40
- 84
0
votes
1 answer
Can I place and access a static library (.a) in the Documents or Library directory for an iOS app?
I would like to make my iOS app easy to update a library without updating the app to the App Store. So I think I may place and access a static library (.a) in the Documents or Library directory of the app.
Would this be possible? If so, how this can…

Protocole
- 1,733
- 11
- 28
- 42