多个命令产生错误Xcode 10 [英] Multiple commands produced error xcode 10

查看:60
本文介绍了多个命令产生错误Xcode 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

:-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 post but they didn't work. Any help provided is appreciated. Thanks!

推荐答案

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

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:

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

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

It will resolve the build issue with the new 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构建系统的问题: 通过执行以下步骤,从Pod中删除重复的info.plist:

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:

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

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

这篇关于多个命令产生错误Xcode 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆