Mojave Update:如何解决这些错误?

时间:2018-10-29 03:44:43

标签: ios xcode swift3 cocoapods

嗨,我刚刚用新的Mojave更新了iMac,现在在我的项目中遇到了这些错误。我已经花了一些时间寻找解决方案,但尚未找到解决方案。任何帮助,将不胜感激。谢谢。 Image With Errors Here

1。错误:/Users/MyUsername/Library/Developer/Xcode/DerivedData/App01-dvsqcwpxxkpcbwhkdrzcmteyzypa/Build/Products/Debug-iphoneos/Alamofire/Alamofire.framework:没有此类文件或目录

2。错误:/Users/MyUsername/Library/Developer/Xcode/DerivedData/App01-dvsqcwpxxkpcbwsadfssdteyzypa/Build/Products/Debug-iphoneos/GoogleToolboxForMac/GoogleToolboxForMac.framework:没有此类文件或目录

3。。多个命令会产生“ /Users/MyUsername/Desktop/App01/DerivedData/App01/Build/Products/Debug-iphonesimulator/App01.app/Frameworks/GoogleToolboxForMac.framework”:

4。。多个命令产生“ /Users/MyUsername/Desktop/App01/DerivedData/App01/Build/Products/Debug-iphonesimulator/App01.app/Frameworks/Alamofire.framework”:

解决方案:[Project_Name]>构建阶段>嵌入框架并删除其中的重复项。

1 个答案:

答案 0 :(得分:0)

首先,使用Command-Option-Shift-K清除构建文件夹并重新构建。如果仍然出现此错误,请转至〜/ Library / Developer / Xcode / DerivedData并删除所有文件。

更多详细信息: How to Empty Caches and Clean All Targets Xcode 4 and later