Search code examples
xcodebuildwarnings

Xcode warning: "Multiple build commands for output file"


I am getting an error like this:

[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/no.png

[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/d.png

[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/n.png

But I have checked Xcode and I don't see any duplicates of such files at all. As this post in the Apple Mailing Lists say, there are no duplicates.


Solution

  • Actually, the answer to this is quite simple.

    In your Xcode project search for the files which raise the warning, and just delete one of them.

    Xcode will show only one reference of that file in the search results, but don't stop there, go ahead and delete it. (it's better to make a backup of your project file before deleting it)

    Now build the project again. The warning should disappear now. (this answer is for a previous version of xcode)