Skip to content
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

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

Open
1 of 5 tasks
ospfranco opened this issue Apr 27, 2024 · 7 comments
Open
1 of 5 tasks
Labels
bug Something isn't working

Comments

@ospfranco
Copy link

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?

  • 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.

@ospfranco ospfranco added the bug Something isn't working label Apr 27, 2024
@moxorama
Copy link

moxorama commented May 15, 2024

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
Copy link
Author

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...

Copy link

This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.

@github-actions github-actions bot added the Stale label Aug 22, 2024
@ospfranco
Copy link
Author

Still valid

@github-actions github-actions bot removed the Stale label Aug 23, 2024
@agallio
Copy link

agallio commented Sep 13, 2024

Still get the same error:

[Error: Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=4 "The folder “manifest.json” doesn’t exist." UserInfo={NSFilePath=/Users/agalliosamai/Library/Developer/CoreSimulator/Devices/4976CFB2-DDB1-4A72-88B6-8F150147F925/data/Containers/Data/Application/8A273290-2F34-4183-8904-404D17451077/Library/Application Support/xyz.agallio.kapanya/RCTAsyncLocalStorage_V1/manifest.json, NSURL=file:///Users/agalliosamai/Library/Developer/CoreSimulator/Devices/4976CFB2-DDB1-4A72-88B6-8F150147F925/data/Containers/Data/Application/8A273290-2F34-4183-8904-404D17451077/Library/Application%20Support/xyz.agallio.kapanya/RCTAsyncLocalStorage_V1/manifest.json, NSUserStringVariant=Folder, NSUnderlyingError=0x600000e88600 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}]

Is there any workaround to fix this temporarily?

@hassankhan
Copy link

I see this error quite a lot on iOS too. Deleting the app on the simulator before running run-ios seems to reliably prevent the issue from occurring.

@angelica-snowit
Copy link

Same here :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants