Moritz Lindner
11/13/2023, 10:16 AMUncaught Kotlin exception: okio.IOException: Operation not permitted
exception. The exception will only occur on a real iOS device, in the simulator it will work just fine. I found 1 issue regarding this problem in [KStores GitHub Issues](https://github.com/xxfast/KStore/issues/44) which basically says that it is an OKIO related issue.
Does anyone know of a workaround, and if not, could you reference different libraries/ideas to implement file persistence in this context?🙂Konstantin Tskhovrebov
11/13/2023, 10:42 AMprivate fun getCacheDirectoryPath(): Path {
val cacheDir = NSSearchPathForDirectoriesInDomains(
NSCachesDirectory,
NSUserDomainMask,
true
).first() as String
return "$cacheDir/cache".toPath()
}
Moritz Lindner
11/13/2023, 12:47 PMNSHomeDirectory
. I will it with the cache directory.
Just for clarification. What does cache in this context mean? Will the content be deleted after the App is closed or the device is rebooted?Jeff Lockhart
11/13/2023, 2:37 PMxxfast
12/01/2023, 1:56 AM