工程变异直接报红无法成功编译,报错信息如下:
Multiple commands produce ‘/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxx.app’:
- Target ‘xxx’ has create directory command with output ‘/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxx.app’
- That command depends on command in Target ‘xxx’: script phase “[CP] Copy Pods Resources”
看报错可能是多个命令同时执行导致冲突(输出.app文件命令?),报错中1)里面写了directory command with output,报错中2)告诉命令来自哪个Target,同时有“[CP] Copy Pods Resources”字样,是不是很熟悉?
方法一:
Xcode文件列表选中PROJECT,依次选择TARGETS -> Build Phases -> [CP]Copy Pods Resouces,往下看分别有Shell、Input Files、Input File List、Output Files、Output File List。在Output Files下面多了一行这样的,就一行(本文情况)。
${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
将这一行删掉又可以愉快的编译了(纠结能不能删两秒钟)。
方