升级到XCode 10后编译项目出现以下错误:
:-1: Multiple commands produce '':
1) Target 'xxxx' has create directory command with output ''
2) That command depends on command in Target 'xxxx': script phase “[CP] Copy Pods Resources”
百度得到结果:
错误发生在[CP] Copy Pods Resources,且与output有关。
解决方案:根据提示信息,选中对应的target -> Build Phases -> [CP] Copy Pods Resources -> Output Files -> 移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} -> build
来源:链接
更改后继续错误:
:-1: Multiple commands produce '':
1) Target 'BBBB' (project 'Pods') has copy command from '.../BBBB/internal.h'
:-1: Multiple commands produce XXX':
1) Target 'DDDD' (project 'Pods') has copy command from '..../DDDD/UIScr