最新Xcode编辑旧项目报错Multiple commands produce Info.plist

今天需要对之前的老项目做升级,没想到用新版Xcode打开后,运行报错。这个错误大家肯定也经常遇到。先来看下错误,提示存在多个Info.plist文件:

Showing Recent Messages

:-1: Multiple commands produce ‘/Users/xxxx/Library/Developer/Xcode/DerivedData/ProjectB-bepvfbppjiashecuxsdrpxnyuwat/Build/Products/Debug-iphonesimulator/ProjectB.app/Info.plist’:

1) Target ‘ProjectB’ (project ‘ProjectB’) has copy command from ‘/Users/xxxx/Desktop/Project/ProjectB/ProjectB/Library/Masonry/Info.plist’ to ‘/Users/xxxx/Library/Developer/Xcode/DerivedData/ProjectB-bepvfbppjiashecuxsdrpxnyuwat/Build/Products/Debug-iphonesimulator/ProjectB.app/Info.plist’

2) Target ‘ProjectB’ (project ‘ProjectB’) has process command with output ‘/Users/xxxx/Library/Developer/Xcode/DerivedData/ProjectB-bepvfbppjiashecuxsdrpxnyuwat/Build/Products/Debug-iphonesimulator/ProjectB.app/Info.plist’

 

解决办法:

1、Xcode – File – Project Settings,修改Build System为:Legacy Build System,然后点击Done。(如果编辑还是这个错误,请尝试clean一下项目)

2、Xcode中点击项目,Build Phases,搜索Info.plist,将出现在Copy Bundle Resource中的Info.plist移除掉。

 

尊重原创内容,转载请注明出处
本文链接地址: https://www.awnlab.com/archives/286

为您推荐

发表评论

邮箱地址不会被公开。 必填项已用*标注