问题
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