[cmake-developers] Xcode Project: Support for DevelopmentTeam

Fabian fabianjul at gmail.com
Fri Oct 17 16:16:07 EDT 2014


Somewhere starting in Xcode 4 or 5, Apple added a Team dropdown to the
General tab of a target. The developer can select a development team there,
which results in a bunch of useful things, most importantly: Xcode
automatically updates the devices list in the Member Center and the
currently fitting iOS Team Provisioning Profile. This creatly simplyfies
management of development devices.

It would be very nice if CMake supported setting this option. A look at the
project.pbxproj reveals that this setting is stored in the 'attributes' in
the PBXProject section:

3B69B74659794A7B9F0C2B71 /* Project object */ = {
    isa = PBXProject;
    attributes = {
        BuildIndependentTargetsInParallel = YES;
        TargetAttributes = {
            26E66AE0CD2341D58DBF6E8B = {
                DevelopmentTeam = <10 character Team ID>;
            };
        };
    };
    ....

In the CMake source I noticed that 'BuildIndependentTargetsInParallel' is
already getting set. This could be extendet to add the 'TargetAttributes'
section. Note that the ID used in there (26E66AE0CD2341D58DBF6E8B in the
example) is the ID of the 'main' target, i.e. the one with the name of the
project.

The 10 character Team ID can be found by the developer in the member center
under Your Account. This could be set with a CMake flag.

Thanks,
Fabian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141017/660507d6/attachment-0002.html>


More information about the cmake-developers mailing list