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

由于各种原因,最近没有开发iOS程序了,之前的项目放了好久也没动。最近,领导让改个需求,升级了最新的Xcode,发现项目打不开了

 Multiple commands produce 
'/Users/XXXX/Library/Developer/Xcode/DerivedData/YYYY- 
hbbiovvwitmvkrblqxqkthsyfong/Build/Products/Debug-iphoneos/YYYY.app':
1) Target 'YYYY' has create directory command with output 
'/Users/XXXX/Library/Developer/Xcode/DerivedData/Gallery- 
hbbiovvwitmvkrblqxqkthsyfong/Build/Products/Debug-iphoneos/YYYY.app'
2) That command depends on command in Target 'YYYYY': script phase “[CP] Copy Pods Resources”

报这个错误需要去到tagetsBuild Phases[CP]copy pods Resources 删除Output files里的${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
路径如下:

That command depends on command in Target 'XXX': script phase “[CP] Copy Pods Resources”_第1张图片
28822146030092_.pic_hd.jpg

删除之后,就顺利编译通过了!

你可能感兴趣的:(That command depends on command in Target 'XXX': script phase “[CP] Copy Pods Resources”)