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

Error: Failed to write manifest。 #1152

Open
2 of 5 tasks
chen834921478 opened this issue Oct 18, 2024 · 11 comments
Open
2 of 5 tasks

Error: Failed to write manifest。 #1152

chen834921478 opened this issue Oct 18, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@chen834921478
Copy link

chen834921478 commented Oct 18, 2024

What happened?

[Error: Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=4 "The folder “manifest.json” doesn’t exist." UserInfo={NSFilePath=/Users/xxx/Library/Developer/CoreSimulator/Devices/ABA7A135-7070-41CE-8A0B-80192332E934/data/Containers/Data/Application/13CD016E-0375-465C-9F4F-C6C3257A66D1/Library/Application Support/xxx/RCTAsyncLocalStorage_V1/manifest.json, NSUserStringVariant=Folder, NSUnderlyingError=0x600000da02d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}, NSURL=file:///Users/xxx/Library/Developer/CoreSimulator/Devices/ABA7A135-7070-41CE-8A0B-80192332E934/data/Containers/Data/Application/13CD016E-0375-465C-9F4F-C6C3257A66D1/Library/Application%20Support/xxxx/RCTAsyncLocalStorage_V1/manifest.json}]

Version

1.23.1

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M3
  Memory: 94.28 MB / 24.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: /opt/homebrew/opt/node@20/bin/node
  Yarn:
    version: 4.5.0
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.2
    path: /opt/homebrew/opt/node@20/bin/npm
  Watchman:
    version: 2024.09.09.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2412.12266719
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Steps to Reproduce

After performing multiple AsyncStorage.remove operations and then restarting the app:

@chen834921478 chen834921478 added the bug Something isn't working label Oct 18, 2024
@mensonones
Copy link
Contributor

Hi, @chen834921478!

detail more about the problem and if possible provide a minimal example of reproducing the problem

@drewjenkins
Copy link

Also encountering this. Unsure of STR, I think it just started happening once I upgraded to the latest version. Can't write, fetch, or clear items.

@gemartinez56
Copy link

gemartinez56 commented Nov 6, 2024

Exact same issue here. But with version async [email protected] – has anyone repro'd?

@mensonones
Copy link
Contributor

If you or anyone else is still having this issue and can share a minimal reproduction of it, I would be happy to try to help.

@poojagupta-trilogy
Copy link

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}]

@guihendias
Copy link

Same issue with expo 51

@drewjenkins
Copy link

Hey, here is a temporary fix I found to the issue.

  1. npm install patch-package
  2. In your package.json scripts, add "postinstall": "patch-package"
  3. Within the base dir of your project, create a folder named patches
  4. Within that folder, create a file named xcode+3.0.1.patch
  5. Paste the following into the file, save, and re-run npm install. After that it should patch the issue and be fixed.
diff --git a/node_modules/xcode/lib/pbxProject.js b/node_modules/xcode/lib/pbxProject.js
index 068548a..b478056 100644
--- a/node_modules/xcode/lib/pbxProject.js
+++ b/node_modules/xcode/lib/pbxProject.js
@@ -1678,8 +1678,7 @@ function correctForFrameworksPath(file, project) {

 function correctForPath(file, project, group) {
     var r_group_dir = new RegExp('^' + group + '[\\\\/]');
-
-    if (project.pbxGroupByName(group).path)
+    if (project.pbxGroupByName(group)&&project.pbxGroupByName(group).path)
         file.path = file.path.replace(r_group_dir, '');

     return file;

@kiorq
Copy link

kiorq commented Nov 23, 2024

still hasn't been resolved yet?

@RejoV
Copy link

RejoV commented Nov 29, 2024

If you or anyone else is still having this issue and can share a minimal reproduction of it, I would be happy to try to help.

Minimal reproductions steps:

  1. After creating app and installing async-storage package
  2. Create a root file called by App.js followed by 2 screen namely home & profile
  3. In root based. Initially call async get item in useEffect hook.
  4. Based on value present in get item show appropriate screen.
    When these steps are followed error is showing.
    I'm using react-native 0.76.3 and @react-native-async-storage/async-storage ^2.1.0.

Thanks in advance for the help.

@emilyjerger
Copy link

Also experiencing this same issue.

@cem2ran
Copy link

cem2ran commented Dec 19, 2024

Are you by chance getting this error only on iOS 18? @RejoV @emilyjerger

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

10 participants