“bad interpreter: Operation not permitted” Error on El Capitan “bad interpreter: Operation not permitted” Error on El Capitan bash bash

“bad interpreter: Operation not permitted” Error on El Capitan


try this: $ ls -l@ whereverthescriptisIf it says it's got com.apple.quarantine, that's the problem. Run one of these on it, from least dangerous to most:

$ xattr -d com.apple.quarantine whereverthescriptis   # delete that attr$ xattr -c whereverthescriptis    # delete ALL the attrs on file$ xattr -c *         # on every file in this dir$ xattr -cr .        # and all subdirectories


I hope this will help someone, because mine was a slightly unique solution of the above problem: I had someone else do the code for me, so when I got the code, it would not run with "Operation Not Permitted" status on both android and iOS.

It turns out that I have to go to the folder that contained the project, and take ownership of the folder. You can do this on a Mac by going to the folder containing the Flutter project, and clicking on "Get info" from the context menu. Then change your access rights to "read-only", then back to "write and read" in the last pane in the bottom.

Follow this by one of the advices above to remove the Apple quarantine attribute from the folder by going to Terminal, then use "cd" command to navigate to the folder containing your Flutter project, and typing the following command:

xattr -dr com.apple.quarantine [your flutter project directory name]

That's it! Now Android Studio, or your IDE of choice, will be able to run both iOS and Android versions from that folder.


i am solve it if you using pods just

  1. pod deintegrate
  2. pod install

and project ready to run