升级Xcode 13后报错问题记录

Multiple commands produce '/Users/zhubo/Library/Developer/Xcode/DerivedData/ChaoYang-btztxzgsytyouafbhipltzzwgbxb/Build/Intermediates.noindex/ArchiveIntermediates/ChaoYang/InstallationBuildProductsLocation/Applications/ChaoYang.app':

1) Target 'ChaoYang' has create directory command with output '/Users/zhubo/Library/Developer/Xcode/DerivedData/ChaoYang-btztxzgsytyouafbhipltzzwgbxb/Build/Intermediates.noindex/ArchiveIntermediates/ChaoYang/InstallationBuildProductsLocation/Applications/ChaoYang.app'

2) That command depends on command in Target 'ChaoYang': script phase “[CP] Copy Pods Resources”

解决方法

根据error 日志,script phase “[CP] Copy Pods Resources”,而且与output有关,应该是使用了cocoapods导致的,尝试删除该项目target-Copy Pods Resources-Output Files,成功解决问题。选中项目target -> Build phase -> Copy Pods Resources -> Output Files -> 移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}  ,然后重新编译,OK 。

你可能感兴趣的:(升级Xcode 13后报错问题记录)