Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode: 'Warning: Multiple build commands for output file' but I get error if I delete the duplicate

Tags:

xcode

ios

I get the errors:

Warning: Multiple build commands for output file /Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzkszeagjrtzrfssudr/Build/Products/Debug-iphonesimulator/myapp.app/icon-72.png
Warning: Multiple build commands for output file /Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzkszeagjrtzrfssudr/Build/Products/Debug-iphonesimulator/myapp.app/Default-Landscape@2x~ipad.png
Warning: Multiple build commands for output file /Users/me/Library/Developer/Xcode/DerivedData/myapp-csoyvdzaugzkszeagjrtzrfssudr/Build/Products/Debug-iphonesimulator/myapp.app/Default-Landscape~ipad.png

When I try to run my app in the simulator. I understand this is because of duplicate files. But when I remove either of the duplicates I get the errors:

error: /Users/me/Documents/Cordova27/myapp/myapp/Resources/icons/icon-72.png: No such file or directory

Does anyone know how to fix this at all? Have tried cleaning and restarting XCode to no avail.

like image 928
MeltingDog Avatar asked Jun 15 '13 07:06

MeltingDog


2 Answers

open the Copy Bundle Resources Build Phase. find the twice files in that list and Delete the duplicate reference.

like image 182
MackC Avatar answered Sep 20 '22 13:09

MackC


Remove both,Add again.[Drag and drop at the icon field in the summary page]

like image 28
Lithu T.V Avatar answered Sep 20 '22 13:09

Lithu T.V