XCode 10 错误 Multiple commands produce

在更新到XCode 10后遇到'Multiple commands produce'错误,主要涉及[CP] Copy Pods Resources步骤与output冲突。解决方法包括删除多余资源文件和检查Info.plist冲突,根据XCode提供的提示进行相应调整。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误:xxx.app

:-1: Multiple commands produce '/Users/xxxxxxxxxxxxxx/Debug-iphonesimulator/xx.app':

1)Target 'xxx' has create directory command with output '/Users/xxxxxxxxxxxxxxxxxxxxxxxxxxx/Debug-iphonesimulator/xx.app'

2)That command depends on command in Target 'xxx': 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}

2、错误2:Info.plist

Showing Recent Messages :-1: Multiple commands produce '/Users/wangzelong/Library/Developer/Xcode/DerivedData/LNRuntime-cfwqvkqkkqmiuudqlpmmdsrncvpv/Build/Products/Debug-iphonesimulator/LNRuntime.app/Info.plist': 1) Target 'LNRuntime' (project 'LNRuntim
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值