scripts/xcode-helpers.js
function getTargetAttributes(project, target) {
    var attributes = project.getFirstProject()['firstProject']['attributes'];
    target = target || project.getFirstTarget();

    if (attributes['TargetAttributes'] === undefined) {
        attributes['TargetAttributes'] = {};
    }

    if (attributes['TargetAttributes'][target.uuid] === undefined) {
        attributes['TargetAttributes'][target.uuid] = {};
    }

    return attributes['TargetAttributes'][target.uuid];
}
function getTargetAttributes(project, target) {
    var attributes = project.getFirstProject()['firstProject']['attributes'];
    target = target || project.getFirstTarget();

    if (attributes['TargetAttributes'] === undefined) {
        attributes['TargetAttributes'] = {};
    }

    if (attributes['TargetAttributes'][target.uuid] === undefined) {
        attributes['TargetAttributes'][target.uuid] = {};
    }

    return attributes['TargetAttributes'][target.uuid];
}
function getTargetAttributes ( project , target ) { var attributes = project . getFirstProject ( ) [ 'firstProject' ] [ 'attributes' ] ; target = target || project . getFirstTarget ( ) ; if ( attributes [ 'TargetAttributes' ] === undefined ) { attributes [ 'TargetAttributes' ] = { } ; } if ( attributes [ 'TargetAttributes' ] [ target . uuid ] === undefined ) { attributes [ 'TargetAttributes' ] [ target . uuid ] = { } ; } return attributes [ 'TargetAttributes' ] [ target . uuid ] ; }
The node-xcode library doesn't offer a method to get all target attributes, so we'll have to implement it ourselves.
The node - xcode library doesn t offer a method to get all target attributes so we ll have to implement it ourselves .