XCode 10 错误:Multiple commands produce

升级到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/UIScrollView+UNOUtilily.h'

 

最后发现XCode 10加入了一个Workspace Settings(也可能以前有我不知道)

File --> Workspace Settings,将Build System改为:Legacy Build System 可解以上所有问题。

XCode 10 错误:Multiple commands produce_第1张图片

 

你可能感兴趣的:(iOS开发)