Xcode10 Multiple commands produced error

升级Xcode10,直接跑之前的项目会出问题,

:-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 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. In Xcode, go to File->Project/Workspace settings.
2. Change the build system to Legacy Build system.

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.

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

问题2::
Images.xcassets: Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn
直接删掉文件夹暂时可以解决

原文:::
https://stackoverflow.com/questions/51071090/multiple-commands-produced-error-xcode-10

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,486评论 0 10
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,566评论 5 6
  • 前段时间甚为焦虑,原因是职场发展不顺。 一向将工作放在重要位置的自己,情绪低落不说,做什么事情都无精打采。到家也忍...
    笙笙曼阅读 308评论 0 0
  • 1 你好, 前一篇文章, 我们聊了一下母爱。 我们知道,在母爱中,除了少数的母亲在现实中出现变异,走向极端和变态外...
    田野的稻穗阅读 413评论 0 1
  • 摆渡人 愤怒 如同一场烈火 在我身体的各个角落 燃烧 我在痛楚中煎熬 双手紧握 牙关紧咬 我不敢嚎叫 我怕嘴里喷出...
    止语生慧阅读 203评论 1 2