问题
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:
- Click on main project file.
- Goto the Build Phases.
- 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:
- 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
- Re-installed current stable version of cocoapods (v1.1.1 for me)
- Deleted podlock and pods directory
- Deleted old .xcworkspace file (this was key for me).
- Did "pod install"
- 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