Xcode 10迁移错误

时间:2018-09-19 18:43:22

标签: ios xcode xcode10

迁移到Xcode 10后,我遇到了构建错误(产生多个命令...)。我该如何解决?

     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'

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:1)

我通过执行以下步骤解决了这个问题:

1.Goto文件-> Xcode中的工作区设置。 enter image description here

2。在“构建系统”中选择“旧版构建系统”,然后单击“完成”,

enter image description here

  1. 在目标->构建阶段->复制捆绑包资源中检查添加的info.plist是否具有正确的路径。如果不是,请删除info.plist,然后再次添加info.plist。

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

如果要使用新的构建系统,则可以找到故障排除帮助enter link description here