when I built my app in xcode,there is an error:/bin/sh: bad interpreter: Operation not permitted
if install pods is useless,maybe you can find the path of the file with error,for example,my path is /Users/baymac/Documents/patrick lab/ios project/DeviceToPhone/Pods/Target Support Files/Pods/Pods-frameworks.sh
then you can use this instruct:xattr -d com.apple.quarantine+ your path,for example:
xattr -d com.apple.quarantine /Users/baymac/Documents/patrick lab/ios project/DeviceToPhone/Pods/Target Support Files/Pods/Pods-frameworks.sh
make sure your path is right.
and my problem is fixed!
I faced same issue.
Reason: If you download project from internet, executable .sh files will be quarantined, and system doesn't allow them to execute.
Cure: You should remove extended attributes to make these executables work.
In terminal
xattr -rc directory_where_executables_located
this will recursively remove extended attributes from files in directory_where_executables_located