迁移到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'
答案 0 :(得分:1)
我通过打开“复制捆绑资源”并查找重复的包含项并删除重复的条目来解决它们。
答案 1 :(得分:1)
我通过执行以下步骤解决了这个问题:
2。在“构建系统”中选择“旧版构建系统”,然后单击“完成”,
它将解决新的Xcode 10的构建问题。
如果要使用新的构建系统,则可以找到故障排除帮助enter link description here