Xcode 8 Shell Script Invocation Error

26,623

Solution 1

I just deleted cocoapods beta version and installed the normal one.

Solution 2

For me (Xcode 9) pod install on its own did not fix it. Tried it with:

pod deintegrate
pod install

And the error disappeared.

You might also want to consider deleting the derived data folders for this project. The location of DerivedData is in your error log.

Solution 3

Here is what I did to remove this error. Please try with below:

  1. Click on main project file.
  2. Goto the Build Phases.
  3. Click on run Script and delete any given path in it so that it does not try to find some framework that has been deleted by you.

I had this problem when I used to check the crash Analytics with the different frameworks like "Test Fairy".

Hope this works. :)

Solution 4

Install the pods once again and run the project. Using command:

pod install

Solution 5

My solution was restarting my computer. Xcode must have got into a bad state that restarting Xcode itself was not enough to fix.

Share:
26,623
sphynx
Author by

sphynx

Updated on July 09, 2022

Comments

  • sphynx
    sphynx almost 2 years

    I'm trying to fix this issue for hours, but it still persists. Tried everything on the forums, nothing helped. I'm using Cocoapods latest version 1.2.0.beta.1 When I try to build the project, it gives me this: enter image description here

  • Larry Lo
    Larry Lo over 6 years
    just applied , still failed to build
  • AfroThundr
    AfroThundr about 6 years
    This solution has already been posted. Also, one-liners are generally not considered very good answers.
  • p0ny
    p0ny over 5 years
    Thank you! Was removing firebase from an old app and this was it