# Set-XcodeProjectVersion

Updates version information in an Xcode project. Review available syntax, parameters, pipeline guidance, and reference details in PSPublishModule API Reference.

Project

PSPublishModule

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

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`System.String`

**Outputs**

`PowerForge.XcodeProjectVersionUpdateResult`

Updates version information in an Xcode project.

## Syntax

```
Set-XcodeProjectVersion
[-BuildNumber <String>]
-MarketingVersion <String>
[-PassThru]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-set-xcodeprojectversion-string-string-switchparameter-string)

Parameter set: `All Parameter Sets`

## Description

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

### Set an app marketing version and build number

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

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

## Parameters

**-BuildNumber String optional**

Optional value to assign to all CURRENT_PROJECT_VERSION entries.

**-MarketingVersion String required**

The value to assign to all MARKETING_VERSION entries.

**-PassThru SwitchParameter optional**

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.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:86C4AE67537B084EF0299ACE6C74C7D1781A1071DDB602F3655C77D1BF21F591 -->
