-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
okio.IOException: Operation not permitted. #1459
Comments
@swankjesse I have created new issue for that bug |
I am also facing this problem @swankjesse. Can you help us with this? |
I'm seeing it as well. Simulator works fine, crashes with iPhone 12 on iOS 17.5.1. I'm getting it through Jetpack Datastore though. `Uncaught Kotlin exception: at 0 News 0x104dec50b kfun:kotlin.Exception#(kotlin.String?;kotlin.Throwable?){} + 143
` |
Same here with Compose Multiplatform and Datastore. Any updates? |
I was able to fix by switching from NSDocumentDirectory -> NSCachesDirectory When creating the DataStore object on iOS.
|
Unclear what action to take here. Can you reproduce this exception consistently? Or perhaps only when the device is locked? |
It was 100% reproducible at the time with NSDocumentDirectory since switching to NSCachesDirectory I haven't had any issues. I suppose the action here would be to fix using NSDocumentDirectory? Or perhaps documenting that it is not supported? |
I am facing this issue only in iOS real device iOS 17.2. Simulator iOS 17.2 works fine. Here is the link to repository OkioReproduce.
This issue can be reproduced using 3.6.0 Okio version and also with latest 3.9.0 version. I hope you can solve this as soon as possible. I have tried my best to help you with reproducing. Here is line that causes this bug
FILESYSTEM.openReadWrite(tempPath, mustCreate = false, mustExist = false)
.The text was updated successfully, but these errors were encountered: