简体   繁体   English

Xcode 10迁移错误

[英]Xcode 10 Migration Errors

I am getting build errors after migrating to Xcode 10 (Multiple commands produce...). 迁移到Xcode 10后,出现构建错误(产生多个命令...)。 How do I resolve them? 我该如何解决?

     Showing All Messages
 :-1: Multiple commands produce '/Users/deepaksharma/Library/Developer/Xcode/DerivedData/MyProject-     ekrrzesacinkoeffhnglauydvxex/Build/Products/Debug-iphoneos/MyProject.app/tint.png':
 1) Target 'MyProject' (project 'MyProject') has copy command from '/Users/deepaksharma/MyProject/MyProject/png/White Balance/tint.png' to '/Users/deepaksharma/Library/Developer/Xcode/DerivedData/MyProject-ekrrzesacinkoeffhnglauydvxex/Build/Products/Debug-iphoneos/MyProject.app/tint.png'
 2) Target 'MyProject' (project 'MyProject') has copy command from '/Users/deepaksharma/MyProject/MyProject/tint.png' to '/Users/deepaksharma/Library/Developer/Xcode/DerivedData/MyProject-ekrrzesacinkoeffhnglauydvxex/Build/Products/Debug-iphoneos/MyProject.app/tint.png'

我通过打开“复制捆绑资源”并查找重复的包含项并删除重复的条目来解决它们。

I resolved this issue by doing the following steps: 我通过执行以下步骤解决了此问题:

1.Goto file -> Workspace setting in Xcode. 1.在Xcode中转到文件->工作区设置。 在此处输入图片说明

2.select Legacy Build system in Build system then click done, 2.在“构建系统”中选择“旧版构建系统”,然后单击“完成”,

在此处输入图片说明

  1. Check for your added info.plist have the correct path in targets->Build Phases->copy bundle resources. 在目标->构建阶段->复制捆绑包资源中检查添加的info.plist是否具有正确的路径。 If not Delete the info.plist and then add the info.plist again. 如果不是,请删除info.plist,然后再次添加info.plist。

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 enter link description here 如果要使用新的构建系统,则可以找到故障排除帮助, 在此处输入链接描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM