美文网首页
iOS - Xcode 10 Error: Multiple c

iOS - Xcode 10 Error: Multiple c

作者: 麦穗0615 | 来源:发表于2019-04-04 10:47 被阅读0次

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

    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'


    如下图:


    报错内容
    WX20190404-101345@2x.png
    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 c

          本文链接:https://www.haomeiwen.com/subject/oscfiqtx.html