View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015111CMakeCMakepublic2014-08-26 09:322015-05-04 09:05
Reporternormanius 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS XOS Version10.9
Product VersionCMake 3.0.1 
Target VersionCMake 3.0.2Fixed in VersionCMake 3.0.2 
Summary0015111: “File reference” warnings when building a CMake project with Xcode 6
DescriptionXcode 6.0 (Beta 4) newly warns the developer if a source file is member of multiple groups/targets.

CMake, in order to work properly, adds the main source file to several targets: my_target_name, ALL_BUILD, ZERO_CHECK. Hence, I get the following superfluous warning messages:

2014-08-26 13:47:48.406 xcodebuild[14099:1007] warning: The file reference for "CMakeLists.txt" is a member of multiple groups ("ALL_BUILD" and "ZERO_CHECK"); 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.

2014-08-26 13:47:48.406 xcodebuild[14099:1007] warning: The file reference for "CMakeLists.txt" is a member of multiple groups ("ZERO_CHECK" and "example"); 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.
Steps To ReproduceThe problem is reproducible with the minimal example attached to this bug report.

cd minimal_example_xcode6_problem
mkdir build && cd build
cmake -G Xcode ..
xcodebuild
Additional Information- Xcode 6.0 (6A267n), it's a beta version
- Warning does not show up for Xcode 5.1.1
- Warning does not show up if I remove the duplicated entries in the proejct.pbxproj file for the targets ALL_BUILD and ZERO_CHECK.
TagsNo tags attached.
Attached Fileszip file icon minimal_example_xcode6_problem.zip [^] (1,958 bytes) 2014-08-26 09:32
zip file icon minimal_example_xcode6_problem_duplicated_files.zip [^] (2,761 bytes) 2014-08-27 10:30

 Relationships
related to 0013935closedBrad King CMake generates corrupt Xcode project files due to illegal reuse of target dependencies 
related to 0015272closedKitware Robot “File reference” warnings when building a CMake project with resources in Xcode 6 

  Notes
(0036683)
normanius (reporter)
2014-08-27 10:29

Added another minimal example that shows a similar warning if the same file is added to two different targets: minimal_example_xcode6_problem_duplicated_files.zip.
(0036724)
Brad King (manager)
2014-09-03 13:02

Fixed:

 Xcode: Generate per-target file references
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cf92fe2d [^]
(0038682)
Robert Maynard (manager)
2015-05-04 09:05

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-08-26 09:32 normanius New Issue
2014-08-26 09:32 normanius File Added: minimal_example_xcode6_problem.zip
2014-08-27 10:29 normanius Note Added: 0036683
2014-08-27 10:30 normanius File Added: minimal_example_xcode6_problem_duplicated_files.zip
2014-09-03 10:55 Brad King Relationship added related to 0013935
2014-09-03 10:56 Brad King Assigned To => Brad King
2014-09-03 10:56 Brad King Status new => assigned
2014-09-03 10:56 Brad King Target Version => CMake 3.1
2014-09-03 13:02 Brad King Note Added: 0036724
2014-09-11 10:15 Rolf Eike Beer Target Version CMake 3.1 => CMake 3.0.2
2014-09-11 10:22 Brad King Status assigned => resolved
2014-09-11 10:22 Brad King Resolution open => fixed
2014-09-11 10:22 Brad King Fixed in Version => CMake 3.0.2
2014-12-01 11:16 Brad King Relationship added related to 0015272
2015-05-04 09:05 Robert Maynard Note Added: 0038682
2015-05-04 09:05 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team