[cmake-developers] [CMake 0014479]: XCODE_DEPEND_HELPER.make doesn't work with iOS applications

Mantis Bug Tracker mantis at public.kitware.com
Fri Oct 11 11:28:10 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14479 
====================================================================== 
Reported By:                Michael Priestman
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14479
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2013-10-11 11:28 EDT
Last Modified:              2013-10-11 11:28 EDT
====================================================================== 
Summary:                    XCODE_DEPEND_HELPER.make doesn't work with iOS
applications
Description: 
When working with static libraries in Xcode, there is a post-build step added by
CMake to clean targets when a static lib is built. This is to work-around known
limitations in Xcode.

The file that does the real work is XCODE_DEPEND_HELPER.make, and it includes
lines of the format:

/bin/rm -f /<path-to-outdir>/bin/Debug/test.app/Contents/MacOS/test

This works fine for Mac OS apps, but doesn't work correctly for iOS apps. In
that case, the actual binary file is not inside a "Contents/MacOS" folder, but
instead just directly under the app directory, so the correct command should be:

/bin/rm -f /<path-to-outdir>/bin/Debug/test.app/test

Is there some setting that the iOS.cmake toolchain could set that would alter
what is generated in this file? Or would CMake need to be extended to allow
customisation of this file?

Steps to Reproduce: 
Create a CMake project that uses the ios-cmake toolchain
(https://code.google.com/p/ios-cmake/) that contains a static lib and an iOS app
that links against the static lib.

Build the app. Then update the code in the library.

When you build the app again, it won't relink the new library.

Additional Information: 
Should this defect actually be raised against the ios-cmake toolchain project
instead?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-10-11 11:28 Michael PriestmanNew Issue                                    
======================================================================




More information about the cmake-developers mailing list