Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-13

API Reference

Command

Set-XcodeProjectVersion

Namespace PSPublishModule
Inputs
System.String
Outputs
PowerForge.XcodeProjectVersionUpdateResult

Updates version information in an Xcode project.

Remarks

Updates all MARKETING_VERSION values in a .xcodeproj directory or raw project.pbxproj file. When -BuildNumber is provided, it also updates all CURRENT_PROJECT_VERSION values. This command intentionally edits local Xcode project metadata only. App Store Connect metadata and build selection belong to higher-level Apple release commands.

Examples

Authored help example

Set an app marketing version and build number

PS>


Set-XcodeProjectVersion -Path .\Tactra.xcodeproj -MarketingVersion 1.0.0 -BuildNumber 4 -PassThru
        

Updates all matching version assignments and returns the before/after summary.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Set-XcodeProjectVersion [-BuildNumber <String>] -MarketingVersion <String> [-PassThru] -Path <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

BuildNumber String optionalposition: namedpipeline: False
Optional value to assign to all CURRENT_PROJECT_VERSION entries.
MarketingVersion String requiredposition: namedpipeline: False
The value to assign to all MARKETING_VERSION entries.
PassThru SwitchParameter optionalposition: namedpipeline: False
Returns the before/after update result.
Path String requiredposition: 0pipeline: True (ByValue, ByPropertyName)aliases: FullName, ProjectPath
Path to a .xcodeproj directory or project.pbxproj file.

Outputs

PowerForge.XcodeProjectVersionUpdateResult