Multiple commands produce /xxx/xxx.app/info.plist

2,015 阅读1分钟

问题:

error: Multiple commands produce '/Users/liujiajun/Library/Developer/Xcode/DerivedData/MoveLabel-bmnipdrhouizbkcodkxranpvjmlc/Build/Products/Debug-iphonesimulator/MoveLabel.app/Info.plist':

  1. Target 'MoveLabel' (project 'MoveLabel') has copy command from '/Users/liujiajun/Desktop/MoveLabel 可移动label/MoveLabel/Masonry/Info.plist' to '/Users/liujiajun/Library/Developer/Xcode/DerivedData/MoveLabel-bmnipdrhouizbkcodkxranpvjmlc/Build/Products/Debug-iphonesimulator/MoveLabel.app/Info.plist'

  2. Target 'MoveLabel' (project 'MoveLabel') has process command with output '/Users/liujiajun/Library/Developer/Xcode/DerivedData/MoveLabel-bmnipdrhouizbkcodkxranpvjmlc/Build/Products/Debug-iphonesimulator/MoveLabel.app/Info.plist'

第一种方法:

来到targets->Build Phases->Copy Bundle Resources,删除info.plist

第二种方法:

如图,file->Project Settings

选择Legacy Build System