报错原因:
Multiple commands produce '/Users/wenjing/Library/Developer/Xcode/DerivedData/NIM-hkcrzzsoipvdvuddllwgxqpejhen/Build/Products/Debug-iphoneos':
- CreateBuildDirectory /Users/wenjing/Library/Developer/Xcode/DerivedData/NIM-hkcrzzsoipvdvuddllwgxqpejhen/Build/Products/Debug-iphoneos
- 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