Xcode13 New Build System编译冲突错误

报错原因:
Multiple commands produce '/Users/wenjing/Library/Developer/Xcode/DerivedData/NIM-hkcrzzsoipvdvuddllwgxqpejhen/Build/Products/Debug-iphoneos':

  1. CreateBuildDirectory /Users/wenjing/Library/Developer/Xcode/DerivedData/NIM-hkcrzzsoipvdvuddllwgxqpejhen/Build/Products/Debug-iphoneos
  2. That command depends on command in Target 'NIMKit' (project 'NIMKit'): script phase “[CP] Copy Pods Resources”

造成原因:

构建选项【New Build System】严格检查引起的。

Xcode13更改后

解决:

方法一:将Build System选项从【New Build System】,恢复为【Legacy Build System】即可,但Xcode13 又会引起其它问题。不推荐

方法二:

在target -> Build phase > Copy Bundle Resource移除掉

image.png

你可能感兴趣的:(Xcode13 New Build System编译冲突错误)