ios 多个命令产生错误 xcode 10

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51071090/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 09:45:00  来源:igfitidea点击:

Multiple commands produced error xcode 10

iosxcodexcode10ios12tlyshynavbar

提问by Akshay Sunderwani

I am working on an iOS app. It is working fine in Xcode 9.4.1, but when I build it in Xcode 10 it gives me following error:

我正在开发一个 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'

I tried the solutions from this postbut they didn't work. Any help provided is appreciated. Thanks!

我尝试了这篇文章中的解决方案,但没有奏效。提供的任何帮助表示赞赏。谢谢!

回答by Akshay Sunderwani

I found the solution for this build error, for anybody else having the same issue with Xcode 10 build system, follow the following steps to fix it:

我找到了这个构建错误的解决方案,对于任何其他人在 Xcode 10 构建系统中遇到同样的问题,请按照以下步骤修复它:

  1. In Xcode, go to File->Project/Workspace settings.
  2. Change the build system to Legacy Build system.
  1. 在 Xcode 中,转到 File->Project/Workspace 设置。
  2. 将构建系统更改为 Legacy Build 系统。

enter image description here

在此处输入图片说明

It will resolve the build issue with the new Xcode 10.

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

If you want to work with the new build system, then you can find the troubleshooting help from this apple Xcode help page.

如果你想使用新的构建系统,那么你可以从这个苹果 Xcode 帮助页面找到故障排除帮助。

Edit:

I was able to resolve the issue with the new Xcode build system by removing the duplicate info.plist from the Pod by following steps:

Solution - Open target > Build phase > Copy Bundle Resource/Compile Sources > removed info.plist from here

编辑:

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

解决方案 - Open target > Build phase > Copy Bundle Resource/Compile Sources > 从这里移除 info.plist