[cmake-developers] [PATCH] iOS Framework Bundle support

Bartosz Kosiorek Bartosz.Kosiorek at tomtom.com
Tue Nov 10 10:22:03 EST 2015


Hello.



My name is Bartosz Kosiorek and I'm TomTom developer and Open Source enthusiast.

Last time in our products, we notice that cmake is not creating correct iOS Frameworks Bundle.
For iOS Frameworks, not versioned Bundle is needed, eg.:

  iOSFramework.framework/
      iOSFramework
      Info.plist
      Headers



Unfortunately with current version of CMake (3.4.0), it produces OS X Framework Bundle, with versions inside, eg.:

  MyFramework.framework/
    MyFramework -> Versions/Current/MyFramework
    Resources -> Versions/Current/Resources
    Versions/
        A/
            MyFramework
            Headers
            Resources/
                 Info.plist
        Current -> A



You could test it with my example project in attachment (cmake_shared_ios_framework.zip).



The iOS Application Bundle was already fixed in CMake 3.4.0. Unfortunately still iOS Frameworks are not produced correctly (Xcode refuses to sign such Frameworks if you would like to push it into iOS device).

In attachment I added solution to produce correct iOS Framework (for OSX Frameworks will be produced normally).



Could you please give some comment about that?

Do you think architecture of that solution is correct?



I would like to do next:

- Refactor code, to have more explicitly names (OSX, iOS or Apple)

- Update documentation

- add some unit tests for creating iOS Frameworks



Best Regards

Bartosz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151110/6093d808/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_shared_ios_framework.zip
Type: application/x-zip-compressed
Size: 6095 bytes
Desc: cmake_shared_ios_framework.zip
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151110/6093d808/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-iOS-Frameworks-bug-15833.patch
Type: application/octet-stream
Size: 3501 bytes
Desc: 0001-Add-support-for-iOS-Frameworks-bug-15833.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151110/6093d808/attachment-0001.obj>


More information about the cmake-developers mailing list