[cmake-developers] [CMake 0013082]: Projects without a build configuration called "Debug" do not load in XCode 4.3

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 30 17:23:22 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13082 
====================================================================== 
Reported By:                Michael Toy
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13082
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-30 17:23 EDT
Last Modified:              2012-03-30 17:23 EDT
====================================================================== 
Summary:                    Projects without a build configuration called
"Debug" do not load in XCode 4.3
Description: 
If CMAKE_CONFIGURATION_TYPES does not include a configuration called "Debug",
then the generated XCode project will not load in XCode 4.3.

You get the message: "Project *mumble*.xcodeproj cannot be opened: The project
contains has no default build configuration - it may have been damaged"

Examining the project file, I see this reference to a non existent configuration
"Debug", which, if I edit by hand to a legal configuration, allows XCode 4.3 to
open the project.

/* Begin XCConfigurationList section */
              112307722465449CAB35CE62 /* Build configuration list for
PBXProject  "MUMBLE" */ = {
                     isa = XCConfigurationList;
                     buildConfigurations = (
                            405A72F866C04328BAC5995E /* Release */,
                            4337EF4DA71245D9A159CB90 /* Instrumented */,
                     );
                     defaultConfigurationIsVisible = 0;
                     defaultConfigurationName = Debug;
              };

Which is caused by these lines in cmGlobalXCodeGenerator.cxx
( from method cmGlobalXCodeGenerator::CreateXCodeObjects )

  std::string comment = "Build configuration list for PBXProject ";
  comment += " \"";
  comment += this->CurrentProject;
  comment += "\"";
  configlist->SetComment(comment.c_str());
  configlist->AddAttribute("defaultConfigurationIsVisible",
                           this->CreateString("0"));
  configlist->AddAttribute("defaultConfigurationName",
                           this->CreateString("Debug"));

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-30 17:23 Michael Toy    New Issue                                    
======================================================================




More information about the cmake-developers mailing list