How to get “Library” path on actual iOS device

天大地大妈咪最大 提交于 2019-12-10 23:55:25

问题


I am using the following code to my app base directory:

// /private/var/mobile/Applications/exampleID/example.app/ 
FAppDataDirPath := GetHomePath + PathDelim + Application.Title + '.app' + PathDelim;
// /private/var/mobile/Applications/exampleID/example.app/Library/
FAppDataLibraryDirPath := FAppDataDirPath + 'Library' + PathDelim;

On iOS simulator both these paths exist.

However, on the iOS device only FAppDataDirPath exists. The "Library" variation can not be created using e.g ForceDirectories

What is wrong? :(

来源:https://stackoverflow.com/questions/17809533/how-to-get-library-path-on-actual-ios-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!