iOS ERROR: Operation not permitted Command PhaseScriptExecution failed with a nonze

created at 07-10-2021 views: 1

description

I recently took over an older project and reported an error when compiling:

Operation not permitted Command PhaseScriptExecution failed with a nonze 

or

Run custom shell script '[CP] Embed Pods Frameworks

From the error report, it seems that a certain .sh file does not have permission. Run through terminal

chomd a+x xxxxx.sh

 terminal

(xxxxx.sh is the path of the error file) The problem has not been resolved

Solution

  1. Open the terminal and enter
    sudo gem install cocoapods-deintegrate cocoapods-clean
  2. Go to the project root directory and enter pod deintegrate
  3. After the deletion is complete, enter pod clean
  4. Enter pod install again

After the download is complete, the problem is solved

ios
Please log in to leave a comment.