react-native-async-storage / async-storage

An asynchronous, persistent, key-value storage system for React Native.
https://react-native-async-storage.github.io/async-storage/
MIT License
4.61k stars 458 forks source link

macOS: Failed to write value. The folder “xxxxxxx” doesn’t exist. #1089

Open ospfranco opened 2 months ago

ospfranco commented 2 months ago

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:

CleanShot 2024-04-27 at 07 39 18@2x

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?

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.

moxorama commented 1 month ago

Have the same problem on Expo SDK 50 / Dev client / iOS Simulator Build.

 ERROR  Error storing data [Error: Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=4 "The folder “manifest.json” doesn’t exist." UserInfo={NSFilePath=/Users/wizeman/Library/Developer/CoreSimulator/Devices/BDC1C2FB-DFB3-407B-96F9-121CCE8A11D9/data/Containers/Data/Application/32DB5C1B-2B1D-47A8-BCF6-C7AED66E21C7/Library/Application Support/com.investengine.development/RCTAsyncLocalStorage_V1/manifest.json, NSUserStringVariant=Folder, NSUnderlyingError=0x600001482e20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}]
ospfranco commented 1 week ago

I checked again and there is also an error regarding the manifest.json:

Error: Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=4 "The folder “manifest.json” doesn’t exist." UserInfo={NSFilePath=/Users/pascal.sardella/Library/Application Support/com.ospfranco.sol/RCTAsyncLocalStorage_V1/manifest.json, NSUserSt...