Xcode 10 Migration Errors

五迷三道 提交于 2019-12-25 04:08:48

问题


I am getting build errors after migrating to Xcode 10 (Multiple commands produce...). 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'

回答1:


I resolved them by opening "Copy Bundle Resources" and looking for duplicate inclusions, and deleting duplicate entries.




回答2:


I resolved this issue by doing the following steps:

1.Goto file -> Workspace setting in Xcode.

2.select Legacy Build system in Build system then click done,

  1. Check for your added info.plist have the correct path in targets->Build Phases->copy bundle resources. If not Delete the info.plist and then add the info.plist again.

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 enter link description here



来源:https://stackoverflow.com/questions/52412351/xcode-10-migration-errors

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!