iOS Multiple commands produce ‘Users/x/Library/x/Build/Products/Debug-iphonesimulator/xxx.app‘报错处理

工程变异直接报红无法成功编译,报错信息如下:

Multiple commands produce ‘/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxx.app’:

  1. Target ‘xxx’ has create directory command with output ‘/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxx.app’
  2. 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}
将这一行删掉又可以愉快的编译了(纠结能不能删两秒钟)。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值