iOS-Universal-Framework
iOS-Universal-Framework copied to clipboard
Warning: Multiple build commands for output file
Hello.
I'm trying the beta-branch atm for the project i am building. I noticed that when compiling the first time after having removed the build-folder i don't get any errors at all but if i recompile without cleaning i get this warning: Warning: Multiple build commands for output file, for every nib file in the final product.
Is there a way to fix this, is it a known issue or am i doing something terribly wrong? :)
Thank you in advance
I'm not able to reproduce this error. I created a fake framework project, added a view controller with xib, compiled, then changed a source file and compiled again, all without warnings. Are you sure nothing's amiss with your build phases?
I am sorry, i noticed now that i did not provide all the necessary information. I also included Unit-Tests in my project and that is what also seems to be the reason for the warnings (they are produced by MyUnitTest.octest/*.nib)
Again sorry for the inconvenience.
Hi, I got similar problem for the following configuration:
Framework A has a resource (.plist file). Framework B links to framework A Framework C links to framework A and framework B.
When building framework C (second time) I get the warning. From what I can see at this very moment, it's due to Xcode trying to embed the resource from framework A in both B, and then from B to C and from A to C directly. So techincally, due to the way the frameworks connected, the resource exists in both B and A, so even though they are the same, Xcode does treats them as separate entities with the same name.
Just in case, from what I can see, Xcode is able to embed the resources from static frameworks into the linked product, but it does not always do that. For me, when it does a clean build, it never embeds the resources, however if, after clean build, I build the same target for a different platform (i.e. iOS Device vs iOS Simulator), and then switch back to the first platform, and attempt to build 2nd time, it starts embedding the resources from static frameworks, but it does that just for the "first" level of the frameworks (i.e. for the "leaves"). If I repeat the process, it embeds resources from the 2nd level and etc. (I'm on Xcode 4.5.1)