The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14901 
====================================================================== 
Reported By:                Yasser Zabuair
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14901
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-04-30 16:08 EDT
Last Modified:              2014-04-30 16:08 EDT
====================================================================== 
Summary:                    Adding an .xib to an XCode project does not work.
Description: 
When an .xib resource is added to the project, the Xcode generator generates the
project in such a way that XCode does not treat the project as an .xib:

The project.pbxproj uses an invalid field for an xib file.  When the project is
generated,  the following is setup for the xib:
{isa = PBXFileReference; explicitFileType = "file.xib"; fileEncoding = 4; name =
"TestView.xib"; path = "mpos_apps/ktciosapp/TestView.xib"; sourceTree =
SOURCE_ROOT; }; 

The explicitFiletype is incorrect, it should be lastKnownFileType:

{isa = PBXFileReference; lastKnownFileType = "file.xib"; fileEncoding = 4; name
= "TestView.xib"; path = "mpos_apps/ktciosapp/TestView.xib"; sourceTree =
SOURCE_ROOT; };



Steps to Reproduce: 
The following is done to add the .xib:

file(GLOB xibFiles *.xib)
.
.
source_group("Resources" FILES ${xibFiles})
.
.
add_executable (${ProgramName} MACOSX_BUNDLE ${cppFiles} ${hFiles} ${mmFiles}
${xibFiles} )

set_target_properties(${ProgramName} PROPERTIES
                                     MACOSX_BUNDLE_GUI_IDENTIFIER             
"ca.kili.ktciosapp"
                                     RESOURCE                                
"${xibFiles}"
                                     XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY       
"iPhone Developer"
                                     XCODE_ATTRIBUTE_INFOPLIST_PREPROCESS     
YES
)

Additional Information: 
This is for CMake 2.8.12.2 and XCode Version 5.1.1 (5B1008)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-04-30 16:08 Yasser Zabuair New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to