多个命令产生错误Xcode 10

时间:2018-06-27 20:41:52

标签: ios xcode xcode10 ios12 tlyshynavbar

我正在使用iOS应用。在Xcode 9.4.1中它可以正常工作,但是当我在Xcode 10中构建它时,出现以下错误:

:-1: Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Dev-iphonesimulator/TLYShyNavBar/TLYShyNavBar.framework/Info.plist':
1) Target 'TLYShyNavBar' has copy command from '/Users/.../Desktop/Workspace/iOS/.../Pods/TLYShyNavBar/TLYShyNavBar/Info.plist' to '/Users/.../Library/Developer/Xcode/DerivedData/.../Build/Products/Dev-iphonesimulator/TLYShyNavBar/TLYShyNavBar.framework/Info.plist'
2) Target 'TLYShyNavBar' has process command with input '/Users/.../Desktop/Workspace/iOS/.../Pods/Target Support Files/TLYShyNavBar/Info.plist'

我尝试了this post的解决方案,但没有用。 任何提供的帮助表示赞赏。谢谢!

1 个答案:

答案 0 :(得分:145)

我找到了解决此构建错误的方法,对于其他任何与Xcode 10构建系统存在相同问题的人,请按照以下步骤进行修复:

  
      
  1. 在Xcode中,转到“文件”->“项目/工作区设置”。
  2.   
  3. 将构建系统更改为“旧版构建系统”。
  4.   

enter image description here

它将解决新的Xcode 10的构建问题。

如果要使用新的构建系统,则可以找到故障排除帮助from this apple Xcode help page

  

编辑:

     

我能够通过以下方式解决新的Xcode构建系统的问题:   通过执行以下步骤,从Pod中删除重复的info.plist:

     

解决方案-打开目标>构建阶段>复制捆绑资源/编译   来源>从此处删除了info.plist