Skip to content
This repository was archived by the owner on Jun 2, 2019. It is now read-only.
This repository was archived by the owner on Jun 2, 2019. It is now read-only.

error while using tokens in *buildcommands #31

@noresources

Description

@noresources

Example

project ("MyProject")
    postbuildcommands { "{COPY} 'sourcefile'' '%{cfg.targetdir}'" }

Output an error saying that cfg is not declared

However

project ("MyProject")
    configuration "Anything"
        postbuildcommands { "{COPY} 'sourcefile'' '%{cfg.targetdir}'" }

works, because there is a special case for per-configuration commands in xcode.PBXShellScriptBuildPhase(tr)

IMO, *buildcommands should always be treated as per-configuration items since they can contains per-configuration tokens.
I do not have enough knowledge on how configs are constructed to submit a pull request for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions