Xcode 8 Shell Script Invocation Error

坚强是说给别人听的谎言 提交于 2020-01-01 05:16:30

问题


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:


回答1:


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.




回答2:


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

pod install



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




回答4:


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




回答5:


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




回答6:


Here is what I did when I got this:

  1. Used this site to completely remove All Versions of cocoapods: https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
  2. Re-installed current stable version of cocoapods (v1.1.1 for me)
  3. Deleted podlock and pods directory
  4. Deleted old .xcworkspace file (this was key for me).
  5. Did "pod install"
  6. Opened xcode and cleaned project and deleted derivedData.



回答7:


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.




回答8:


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

Thanks!




回答9:


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



来源:https://stackoverflow.com/questions/40329247/xcode-8-shell-script-invocation-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!