Xcode 10 错误:产生多个命令 [英] Xcode 10 Error: Multiple commands produce
问题描述
错误:多个命令产生/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist":1) 目标OptimalLive"具有从/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist"到/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkim"的复制命令/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist'2) 目标OptimalLive"具有从/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Server/Masonry/Info.plist"到/Users/uesr/Library/Developer/Xcode/DerivedData"的复制命令/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist'3) 目标OptimalLive"具有输入为/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist"的进程命令
在 Xcode9 中运行代码可以,但是在 Xcode10 中出现错误.
此答案已弃用 - XCode 12 已弃用旧版构建系统,它将在后续版本中删除
我找到了此构建错误的解决方案,对于在 Xcode 10 构建系统中遇到相同问题的任何其他人,请按照以下步骤进行修复:
<块引用>- 在 Xcode 中,转到文件"->项目/工作区设置".
- 将构建系统更改为旧版构建系统.
它将解决新 Xcode 10 的构建问题.
如果你想使用新的构建系统,那么你可以找到故障排除帮助来自这个苹果 Xcode 帮助页面.
希望这有帮助!
error: Multiple commands produce '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist': 1) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist' to '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist' 2) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Server/Masonry/Info.plist' to '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist' 3) Target 'OptimalLive' has process command with input '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist'
Running the code in Xcode9 works, but there is a error in Xcode10.
This answer is deprecated - XCode 12 has deprecated the Legacy Build System, it will be removed in a further release
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:
- In Xcode, go to File->Project/Workspace settings.
- 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.
Hope this helps!
这篇关于Xcode 10 错误:产生多个命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!