“File reference” warnings when building a CMake project with resources in Xcode 6
Not all the warnings from #15111 (closed) are fixed in CMake 3.0.2.
For example, when adding a storyboard, you have to add it to the resources, and to the executable to make it work:
add_executable(foo MACOSX_BUNDLE ${SOURCES} main.storyboard)
set_target_properties(foo PROPERTIES RESOURCE main.storyboard)
This adds two references, and the warning is back:
2014-12-01 10:43:54.083 xcodebuild[44408:1007] warning: The file reference for "main.storyboard" is a member of multiple groups ("foo" and "Resources"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.