async-storage: macOS: Failed to write value. The folder “xxxxxxx” doesn’t exist.
What happened?
I have a react-native-macos app that uses async-storage to dump the data periodically. The app is connected to Sentry and this error pop-up periodically:
I have just updated the package to 1.23.1 and I’m waiting to see if the error is solved, but in the meantime I thought I’d ask if anyone has experienced this or knows why this would be hapenning.
Version
1.17.11
What platforms are you seeing this issue on?
- Android
- iOS
- macOS
- Windows
- web
System Information
System:
OS: macOS 14.4.1
CPU: (12) arm64 Apple M2 Max
Memory: 323.00 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.2
path: ~/.nvm/versions/node/v18.20.2/bin/node
Yarn:
version: 4.1.1
path: ~/.nvm/versions/node/v18.20.2/bin/yarn
npm:
version: 10.5.0
path: ~/.nvm/versions/node/v18.20.2/bin/npm
Watchman:
version: 2024.04.15.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/osp/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.4
- iOS 17.4
- macOS 14.4
- tvOS 17.4
- visionOS 1.1
- watchOS 10.4
Android SDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11668458
Xcode:
version: 15.3/15E204a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.9
path: /usr/bin/javac
Ruby:
version: 3.3.0
path: /Users/osp/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.4
wanted: ^0.73.1
react-native-macos:
installed: 0.73.25
wanted: ^0.73.25
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: true
newArchEnabled: false
Steps to Reproduce
I have not been able to reproduce it myself.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 24
I see this error quite a lot on iOS too. Deleting the app on the simulator before running
run-iosseems to reliably prevent the issue from occurring.Any update on this?, after updated to
react-native: 0.76.1&react-native-async-storage: 2.0.0(NOBRIDGE) ERROR Error storing data [Error: Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=4 "The folder “manifest.json” doesn’t exist." UserInfo={NSUnderlyingError=0x301950360 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}, NSUserStringVariant=Folder, NSURL=file:///private/var/mobile/Containers/Data/Application/D99F0782-0F91-4DC3-8C8A-F93AC816A7EA/Library/Application%20Support/gt.school.app/RCTAsyncLocalStorage_V1/manifest.json}]@efstathiosntonas oh haha, fair enough.
@efstathiosntonas move to react-native-mmkv this library cannot be trusted, also it breaks every-time you update something for iOS.
Also hitting this after migrating to Expo 50/
react-native: 0.73.6. I’m onreact-native-async-storage: 1.21.0, but also observed this behavior on2.0.0. Only seems to impact simulators running iOS 18.