Run custom shell script '[cp] embed pods frameworks' no such file or directory

巧了我就是萌 提交于 2020-01-20 21:43:27

问题


Just finished resolving my errors after converting to Swift 3 only to get this error when trying to compile. I have attached a screenshot for clarity, it does not look like the system is looking for a .app file or .sh file. Really don't know too much about the Pods, so any help would be greatly appreciated!


回答1:


Seem to have found a solution. My project name had a space in the middle of two words, very bad practice I know. Not entirely sure what caused this error, though one could possibly conclude that since the problem originated in the Pods framework, it could be related to Cocoapods, rather than migration to Swift 3.

I traced the problem to the Pods framework for my project after searching extensively for solutions to this problem.

Fixed the double quotes to single quotes on the line highlighted, and the project built instantly. Hope this helps anyone else having a similar issue!




回答2:


• Just restart your system..... It Looks crazy but my problem solved.




回答3:


Swift4/5 Xcode10 Same Issue...

After upgrade cocoapods, reset pods, clean the build folder...., all these tries, it still fails... until I found this post.

However, there's no space in my project name, but do have a special characrter <'> in it. I decided to give it a try to see if it is the source of issues. After following along the instructions in how-do-i-completely-rename-an-xcode-projec, the project builds successfully, finally.

So just a note: avoid using space or other special characters in the project name, that may cause some unexpected errors



来源:https://stackoverflow.com/questions/40615207/run-custom-shell-script-cp-embed-pods-frameworks-no-such-file-or-directory

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