iOS - Xcode 10 Error: Multiple commands produce(infor.plist/XX.app)

前言:
记录错误,方便查找,避免浪费不必要的时间。

Xcode10 打开旧项目报错Multiple commands produce定位到Info.plist解决方案

报错内容如下:


Showing Recent Messages

:-1: Multiple commands produce >
'/Users/apple/Library/Developer/Xcode/DerivedData/spor-
alxyeeddbojurrdoaxniuovitgdw/Build/Products/Debug-
iphoneos/spor.app/Info.plist':

  1. Target 'spor' (project 'spor) has copy command from
    '/Users/apple/Downloads/NoAppNoPush/spor/External/Masonry/Info.plist>to '/Users/apple/Library/Developer/Xcode/DerivedData/spor-alxyeeddbojurrdoaxniuovitgdw/Build/Products/Debug-iphoneos/spor.app/Info.plist'

  2. Target 'spor' (project 'spor') has process command with output '/Users/apple/Library/Developer/Xcode/DerivedData/spor-alxyeeddbojurrdoaxniuovitgdw/Build/Products/Debug-iphoneos/spor.app/Info.plist'


如下图:


报错内容


image.png

解决方案(1):

选择 xcode -> File -> Project Seetongs.... -> Shared Project Seetings: -> Build System -> Legacy Build System ->Done

选择蓝色的 -> Done -> 编译通过
(这种方法不建议用,不明白有点儿)

解决方案(2):Info.plist错误
根据提示信息,选中对应的target-> Build Phases -> Copy Bundle Resource -> 移除Info.plist


Xcode 10 Error: Multiple commands produce 如果定位到某app
请看如下连接:Xcode 10 Error: Multiple commands produce

你可能感兴趣的:(iOS - Xcode 10 Error: Multiple commands produce(infor.plist/XX.app))