Xcode10 Multiple commands produc

作者: 狗狗臭鸡蛋 | 来源:发表于2018-07-11 16:32 被阅读53次

升级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

相关文章

网友评论

  • 蛮荒星域:既然升级了Xcode10,编译系统最好还是更新到new build system,修改成旧的只能暂时解决问题。
  • 我本善良:我们的工程没有用pods,但是由于引用的第三方里面也有一个info.plist,把第三方的info.plist删除掉就可以用 new build system了,项目是oc版的。
  • 新地球说着一口陌生腔调:谢谢 看到Stack Overflow的信息有用,解决了!

本文标题:Xcode10 Multiple commands produc

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