升级Xcode10以后工程报错
2018-11-17 本文已影响0人
海耐射手
最近更新了Xcode,在新版本Xcode运行之前的项目时出现编译失败的问题,显示的报错信息为:
Error: Multiple commands produce

经从网上查阅相关资料,原因是:是Xcode 10默认使用的build system是New build system,与Xcode9不同导致。同时有两种办法可解决此Bug:
1、应该是使用了cocoapods导致的,办法:
选中项目target -> Build phase -> Copy Pods Resources -> Output Files -> 移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
如下图:

2、 修改build system
File -> Workspace Setting,将build system修改为legacy build system
如下图:
