Multiple commands produce '/Users/xiaonanchen/Library/Developer/Xcode/DerivedData/Masonry-FDTemplateLayoutCell-drugiuxrkavipkcwqldqiealarfk/Build/Products/Debug-iphonesimulator/Masonry-FDTemplateLayoutCell.app/Info.plist':
1) Target 'Masonry-FDTemplateLayoutCell' (project 'Masonry-FDTemplateLayoutCell') has copy command from '/Users/xiaonanchen/Desktop/Masonry-FDTemplateLayoutCell-master/third_party/Masonry/Info.plist' to '/Users/xiaonanchen/Library/Developer/Xcode/DerivedData/Masonry-FDTemplateLayoutCell-drugiuxrkavipkcwqldqiealarfk/Build/Products/Debug-iphonesimulator/Masonry-FDTemplateLayoutCell.app/Info.plist'
2) Target 'Masonry-FDTemplateLayoutCell' (project 'Masonry-FDTemplateLayoutCell') has process command with output '/Users/xiaonanchen/Library/Developer/Xcode/DerivedData/Masonry-FDTemplateLayoutCell-drugiuxrkavipkcwqldqiealarfk/Build/Products/Debug-iphonesimulator/Masonry-FDTemplateLayoutCell.app/Info.plist'
报错原因:项目plist文件重名,存在多个重名的plist文件。除了自己的其他三方的,引入的重名plist。
解决方法:
(1)在项目中搜索"Info.plist"文件,除了我们自己项目的Info.plist文件,一律删除。
(2)不让Xcode把项目中我们自己的Info.plist文件当作资源文件进行统一管理。操作就是,在Build Phases --> Copy Bundle resources中找到这个Info.plist文件,从中移除掉(如果删除报错,可以修改plist名字来解决)。