Xcode 8 Shell Script Invocation Error

2019-03-27 20:47发布

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

9条回答
成全新的幸福
2楼-- · 2019-03-27 21:03

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

查看更多
神经病院院长
3楼-- · 2019-03-27 21:11

I have just updated my pods again and It started working.

Thanks!

查看更多
Anthone
4楼-- · 2019-03-27 21:17

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. :)

查看更多
孤傲高冷的网名
5楼-- · 2019-03-27 21:17

I'm using Carthage, the reason these errors came out was because I changed the target iOS version from iOS 10 to iOS 9, I solved this problem by running carthage update again.

查看更多
爷、活的狠高调
6楼-- · 2019-03-27 21:17

Just go to the Terminal and find your file and type in "pod install", that will solve the problem.

查看更多
我命由我不由天
7楼-- · 2019-03-27 21:18

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.

查看更多
登录 后发表回答