JNYJ

JNYJ - IOS - DEV

 

Xcode strange warning - Multiple build commands for output file

http://stackoverflow.com/questions/2718246/xcode-strange-warning-multiple-build-commands-for-output-file

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.

link|edit|flag
Hidden place to look for a file, but that helped. Works in XCode Version 3.2.5 too – Tudorizer Mar 19 at 3:31
3  
I fumbled about for a second, so this may help someone: app target -> build phases -> copy bundle resources – jaime Apr 14 at 16:42
This solved my issue. Thanks! – markdorison May 3 at 1:55
me too. Thanks! – AllMyThings May 6 at 6:57

Actually The answer to this is very simple.

In your xcode search for the files which raises the warning, and just delete it.

The Xcode will show only one reference of that file in the search results, but dont stop there, go ahead and delete it. (better make a back up to your project file before delete operation)

Now do a build, you will see the warning removed.

link|edit|flag
But the files don't come up in XCode's groups and files pane any more. What's the deal with this? – Tejaswi Yerukalapudi Oct 7 '10 at 14:52
Ya xcode doesnt shows this up in the list. In Xcode search, the search should be probably executed over the physical project folder instead of project group tree. Maybe this shall be considered as a simple bug in xcode – Futur Oct 7 '10 at 15:17
Perfect solution, the warning was simply caused by duplicate references. – XenElement Jun 3 at 18:25

posted on 2011-06-07 16:53  JNYJ  阅读(1574)  评论(0)    收藏  举报

导航