Xcode warning: “Multiple build commands for output file”

前端 未结 23 1553
既然无缘
既然无缘 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 18:13

    While I'm sure there is a better way, nuking only took me less than 60 seconds, and was the only thing I could find that worked.

    1. Drag repo to the trash.
    2. re-clone your repo.
    3. set up your repo with correct remote tracking. git remote add <url.git>, or git remote set-url <url.git>
    0 讨论(0)
  • 2020-11-28 18:14

    I found a pretty easy solution for this:

    1. Select the file causing the problem from the project navigator
    2. Uncheck the target membership from the file inspector
    3. Build the project
    4. Recheck the target membership for the file again

    The warning is gone! Check this image for reference.

    enter image description here

    0 讨论(0)
  • 2020-11-28 18:14

    I had the same problem minutes ago. I've mentioned changing the 'deployment target' fixed my problem.

    0 讨论(0)
  • 2020-11-28 18:16

    This is not a bug. Xcode assists can assist you. Select the target, to the left in the project Navigator. Click on "Validate settings" at the bottom of the settings. Xcode will check the settings and removes duplicates if possible.

    0 讨论(0)
  • 2020-11-28 18:16

    Open the Frameworks folder in your project and make sure there are only frameworks inside. I added by mistake the whole Developer folder!

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