Xcode: Warning: several build commands for the output file And error: cannot open the executable file ''

I read countless other posts and tried many fixes, but nothing worked for my problem. I precede this by saying that I did not use Xcode on this Macbook in 2-3 months. This is the only project (out of 4 or so that I tried) that has this problem. The first thing I did after opening Xcode was changing the project name, as well as the .h and .m files. I did all this through Xcode, not Finder.

Nothing appears in the navigator in the red text, which indicates that it cannot be found. Here is what I have tried (many times).

Close / Open Xcode.
Empty the project and assembly folder.
Delete the Derived Data folder.
Disk Utility to restore permissions.
Reboot the computer.
Tried various code signing combinations.
Uninstall the application from the device.
Search the project for any duplicate file names.

Here is the warning verbatim:

Warning: several build commands for the output file / Users / jinser / Library / Developer / Xcode / DerivedData / Landmarks -bgnzcomxftpffiezmwocaqdydrlj / Build / Products / Debug-iphoneos / Landmarks.app / Landmarks

and here is the error:

GenerateDSYMFile / Users / jinser / Library / Developer / Xcode / DerivedData / Landmarks-bgnzcomxftpffiezmwocaqdydrlj / Build / Products / Debug-iphoneos / Landmarks.app.dSYM / Users / jinser / Library / Developer / Xcode / DerivedData / Landmarks-bffzdmd Products / Debug-iphoneos / Landmarks.app / Landmarks cd "/ Users / jinser / Desktop / Kevin / Cocos2D Projects / ARSpaceships" setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/ bin: / usr / bin: / bin: / usr / sbin: / sbin "/ Developer / usr / bin / dsymutil / Users / jinser / Library / Developer / Xcode / DerivedData / Landmarks-bgnzcomxftpffiezmwocaqdydrlj / Build / Products / Debug-iphoneos /Landmarks.app/Landmarks -o / Users / jinser / Library / Developer / Xcode / DerivedData / Landmarks-bgnzcomxftpffiezmwocaqdydrlj / Build / Products / Debug-iphoneos / Landmarks.app.dSYM

error: cannot open executable file ''

This is Xcode 4.2 on Mac 10.6.8. Please any advice would be appreciated. I am losing consciousness.

Thanks.

+4
source share
2 answers

Thus, for those who are faced with this problem, and all other solutions there do not work for you, make sure that you do not have a project folder that has the same name as the project. For example, my project is called Landmarks, and I had a folder inside the resources, also called Landmarks. As soon as I renamed the folder, everything was fine.

+6
source

Not my answer, but LargeGlasses provided the real answer (for me) in the comment, I formulated it as an answer in itself, because I can not interrogate the comment.

any two files in your project that have the same name trigger this warning.

In my case, I had an icon with the same name in different subfolders, one was used by the application, and the other was part of my help resource located in a different folder. The solution is to simply rename one of the two.

All thanks and thanks for this answer in BigGlasses.

0
source

Source: https://habr.com/ru/post/1436487/


All Articles