如何解决多个命令产生编译错误

问题描述

编译代码时出现以下错误

多个命令产生 '/Users/akaankshasharman/Library/Developer/Xcode/DerivedData/SmartPath-agdpvnieowvcapdzvypxrtfshosc/Build/Products/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers/GULSecureCoding.h': 1) 目标“GoogleUtilities”(项目“Pods”)具有来自“/Users/akaankshasharman/Documents/WorkSpace/SmartPath Mobile”的复制命令 CICD/TASK_fields/Pods/GoogleUtilities/GoogleUtilities/Environment/Private/GULSecureCoding.h' 到 '/Users/akaankshasharman/Library/Developer/Xcode/DerivedData/SmartPath-agdpvnieowvcapdzvypxrtfshosc/Build/Products/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers/GULSecureCoding.h' 2) 目标“GoogleUtilities”(项目“Pods”)具有来自“/Users/akaankshasharman/Documents/WorkSpace/SmartPath Mobile”的复制命令 CICD/TASK_fields/Pods/GoogleUtilities/GoogleUtilities/Environment/Public/GULSecureCoding.h' 到 '/Users/akaankshasharman/Library/Developer/Xcode/DerivedData/SmartPath-agdpvnieowvcapdzvypxrtfshosc/Build/Products/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers/GULSecureCoding.h'

XCode 版本:12.3

另外,编译后收到多个警告:

重复输出文件 '/Users/akaankshasharman/Library/Developer/Xcode/DerivedData/SmartPath-agdpvnieowvcapdzvypxrtfshosc/Build/Products/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers/GULHeartbeatDateStorage.h' 任务:CpHeader /Users/akaankshasharman/Documents/WorkSpace/SmartPath Mobile CICD/TASK_fields/Pods/GoogleUtilities/GoogleUtilities/Environment/Public/GULHeartbeatDateStorage.h /Users/akaankshasharman/Library/Developer/Xcode/DerivedData/SmartPath-agdpvnieowvcapdzvypxrtfshosc/Build/Products/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers/GULHeartbeatDateStorage.h

我不明白为什么它会这样。这是在运行 pod install 命令后发生的。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)