升级Xcode 10 Error: Multiple commands produce

升级Xcode 10 Error: Multiple commands produce_第1张图片
屏幕快照 2018-09-25 上午9.54.32.png
error: Multiple commands produce '/Users/maxiansheng/Library/Developer/Xcode/DerivedData/PercussionProject-fwieirugahmmvdeljwhihsvrnmls/Build/Products/Debug-iphonesimulator/PercussionProject.app':
1) Target 'PercussionProject' has create directory command with output '/Users/maxiansheng/Library/Developer/Xcode/DerivedData/PercussionProject-fwieirugahmmvdeljwhihsvrnmls/Build/Products/Debug-iphonesimulator/PercussionProject.app'
2) That command depends on command in Target 'PercussionProject':          script phase “[CP] Copy Pods Resources”

分析error内容,错误发生在Copy Pods Resources,而且与output有关,应该是使用了cocoapods导致的,尝试删除该项目target-Copy Pods Resources-Output Files,成功解决问题。

解决步骤:

  选中项目target -> Build phase -> Copy Pods Resources -> Output Files -> 移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} 重新运行即可。
升级Xcode 10 Error: Multiple commands produce_第2张图片
屏幕快照 2018-09-25 上午9.58.49.png
 问题
       Showing Recent Messages:-1: 
Multiple commands produce'/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist':
1) Target '*****' (project '*****') has copy command from '/Users/admxjx/coin-iOS/coin-ios1.0/*****/Info.plist' to '/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist'
2) Target '*****' (project '*****') has process command with output '/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist'

解决1:删除重复的info.plist(删除前请备份好; 右键 show in Finder打开info.plist所在目录)

打开 target > Build pha
se > Copy Bundle Resource/Compile Sources > 删除 info.plist

你可能感兴趣的:(升级Xcode 10 Error: Multiple commands produce)