Xcode warning: “Multiple build commands for output file”

前端 未结 23 1551
既然无缘
既然无缘 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:52

    In my case the issue was caused by the same name of target and folder inside a group.

    Just rename conflicted file or folder to resolve the issue.

    0 讨论(0)
  • 2020-11-28 17:55

    Commenting use_frameworks! in PodFile worked for me.

    #use_frameworks!
    

    Note: Did this on XCode 10.1, pod version 1.8.4

    0 讨论(0)
  • 2020-11-28 17:56

    This is not an Xcode bug, though the warning message is not helpful enough to describe the real cause.

    This error message occurs when you have several files in your project that have the same name. You just have to delete or rename the files with duplicate names and the problem is solved.

    0 讨论(0)
  • 2020-11-28 17:56

    The key was to do pod deintegrate and rm *.workspace file ! What a waste of time !

    0 讨论(0)
  • 2020-11-28 17:58

    The error seem to appear when u have more than one reference of the same file. I had 2 files of the same name and got this error. When I delete one of them the error disappear..

    0 讨论(0)
  • 2020-11-28 17:59

    This is easily caused when you add git based subprojects. Xcode isn't smart enough to ignore the .git subfolder even though you can't see it from finder, so it will get very confused that there are multiple files named "master" or "exclude", (standard git repo files). With Xcode4, go to the project (root of the left tree) then click your app target and expand "Copy Bundle Resources", then remove all the references to .git, you shouldn't need them baked into your app anyway.

    0 讨论(0)
提交回复
热议问题