Xcode warning: “Multiple build commands for output file”

前端 未结 23 1681
既然无缘
既然无缘 2020-11-28 17:29

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

<
23条回答
  •  失恋的感觉
    2020-11-28 17:59

    Yet another variation on this issue. I had the same message come up none of the previously suggested solutions solved the problem (I definitely only had one copy of the offending file for instance).

    My solution was to edit the project.pbxproj file in a text editor (after quitting XCode and backing up the file of course) and remove all references to the offending file. Then, after starting XCode again, I manually added the file back into the project and everything was ok.

    (My suspicion is that this problem happened to me because of a manual, ie: non-XCode, merge of the project file.)

提交回复
热议问题