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內(nèi)容,錯(cuò)誤發(fā)生在Copy Pods Resources待锈,而且與output有關(guān)智哀,應(yīng)該是使用了cocoapods導(dǎo)致的留美,嘗試刪除該項(xiàng)目target-Copy Pods Resources-Output Files,成功解決問(wèn)題奏司。
解決步驟:
選中項(xiàng)目target -> Build phase -> Copy Pods Resources -> Output Files -> 移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} 重新運(yùn)行即可乔询。
問(wèn)題
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:刪除重復(fù)的info.plist(刪除前請(qǐng)備份好; 右鍵 show in Finder打開(kāi)info.plist所在目錄)
打開(kāi) target > Build pha
se > Copy Bundle Resource/Compile Sources > 刪除 info.plist