Skip to content

Instantly share code, notes, and snippets.

@4sskick
Last active September 23, 2024 04:21
Show Gist options
  • Save 4sskick/89db858deb5091c041da8290e1f9af9b to your computer and use it in GitHub Desktop.
Save 4sskick/89db858deb5091c041da8290e1f9af9b to your computer and use it in GitHub Desktop.
macOS Error: /bin/bash: bad interpreter: Operation not permitted
so when doing development on react native platform (iOS), I do build then failed with error operation not permitted on file react-native-xcode.sh (under react-native/scripts folder). Confuse and have no idea how to solve, because I am new using xCode IDE.
Looking for resolution issue but hesitant because am not really familiar with mac OS system. After some reading on resolution I am confident to execute some command for resolve the issue.
So the file is on quarantine attribute because I ever see content of file using 'cat' which leading to edit the script using textEdit *excuse my knowledge on this*
so to resolve the issue you need to make sure is the file (react-native-xcode.sh) is appear on list then execute command `xattr -l react-native-xcode.sh`
if so, then you need to remove react-native-xcode.sh under xattr command using `xattr -d react-native-xcode.sh`
make sure again using `xattr -l react-native-xcode.sh` then build
ref:
- https://web.archive.org/web/20240225084013/https://www.codingcatlady.net/2019/12/macOS-Error-bin-bash-bad-interpreter-Operation-not-permitted.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment