Skip to content

Change version for a specific IOS target #309

Description

@chenop

My workspace include 2 apps, one target for each app, I would like to change the versions only for the specific target I'm now going to deploy.

I've digged in the code and its seems today there is a filter waiting for this issue:

function getPlistFilenames(xcode) {
	return unique(
		flattenDeep(
			xcode.document.projects.map(project => {
				return project.targets.filter(Boolean).map(target => {
					return target.buildConfigurationsList.buildConfigurations.map(
						config => {
							return config.ast.value.get("buildSettings").get("INFOPLIST_FILE")
								.text;
						}
					);
				});
			})
		)
	);
}

So I think change needed is approximately:

return project.targets.filter(target => target === SPECIFIC_XCODE_TARGET).map(target => {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions