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

Operation Not permitted while archiving. #47259

Closed
riteshshukla04 opened this issue Oct 28, 2024 · 5 comments
Closed

Operation Not permitted while archiving. #47259

riteshshukla04 opened this issue Oct 28, 2024 · 5 comments
Labels
Newer Patch Available Resolution: Answered When the issue is resolved with a simple answer

Comments

@riteshshukla04
Copy link
Contributor

Description

We are currently facing this issue while Archiving our App. If we run the script(replace_hermes_version.js) as standalone through node it works fine. The permission denied issue is thrown only when it runs through Xcode.Tried with sudo and chmod . Nothing works

Thanks in Advance

PS:- This issue arrived recently. We archived two days ago with same codebase and it worked fine

Steps to reproduce

Archive the project directly using Xcode or using fastlane

React Native Version

0.75.2

Affected Platforms

Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.6.1
  CPU: (8) arm64 Apple M2
  Memory: 211.41 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.7.0
    path: ~/.nvm/versions/node/v22.7.0/bin/node
  Yarn:
    version: 1.22.10
    path: ~/Desktop/BFHL/DRxMobile/node_modules/.bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v22.7.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2412.12266719
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.7.5
    path: /Users/riteshshukla2/.rvm/rubies/ruby-2.7.5/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.2
    wanted: 0.75.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

Node found at: /Users/riteshshukla2/.nvm/versions/node/v22.7.0/bin/node
Preparing the final location
node:fs:1502
  const result = binding.readdir(
                         ^

Error: EPERM: operation not permitted, scandir 'hermes-engine'
    at readdirSync (node:fs:1502:26)
    at _rmdirSync (node:internal/fs/rimraf:249:29)
    at rimrafSync (node:internal/fs/rimraf:199:14)
    at Object.rmSync (node:fs:1247:10)
    at replaceHermesConfiguration (/Users/riteshshukla2/Desktop/BFHL/DRxMobile/node_modules/react-native/sdks/hermes-engine/utils/replace_hermes_version.js:60:6)
    at main (/Users/riteshshukla2/Desktop/BFHL/DRxMobile/node_modules/react-native/sdks/hermes-engine/utils/replace_hermes_version.js:79:3)
    at Object.<anonymous> (/Users/riteshshukla2/Desktop/BFHL/DRxMobile/node_modules/react-native/sdks/hermes-engine/utils/replace_hermes_version.js:106:1)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
    at Module.load (node:internal/modules/cjs/loader:1317:32) {
  errno: -1,
  code: 'EPERM',
  syscall: 'scandir',
  path: 'hermes-engine'
}

Node.js v22.7.0
Command PhaseScriptExecution failed with a nonzero exit code

Reproducer

N/A

Screenshots and Videos

Screenshot 2024-10-28 at 11 13 28 PM
@react-native-bot
Copy link
Collaborator

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.75.4. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@react-native-bot react-native-bot added Newer Patch Available Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Oct 28, 2024
@react-native-bot
Copy link
Collaborator

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@react-native-bot
Copy link
Collaborator

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@react-native-bot
Copy link
Collaborator

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:

@riteshshukla04
Copy link
Contributor Author

CocoaPods/Xcodeproj#989

This fixed the issue. Closing this

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Oct 28, 2024
@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Attention Issues where the author has responded to feedback. labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Newer Patch Available Resolution: Answered When the issue is resolved with a simple answer
Projects
None yet
Development

No branches or pull requests

3 participants