# New-ConfigurationXcodeProjectVersion

Creates configuration for updating Xcode project version values during a build pipeline.

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**

`None`

Creates configuration for updating Xcode project version values during a build pipeline.

## Syntax

```
New-ConfigurationXcodeProjectVersion
[-BuildNumber <String>]
[-Disabled]
-MarketingVersion <String>
[-Path] <String>
[<CommonParameters>]
```

[#](#method-new-configurationxcodeprojectversion-string-switchparameter-string-string)

Parameter set: `ExplicitVersion`

```
New-ConfigurationXcodeProjectVersion
[-BuildNumber <String>]
[-Disabled]
[-Path] <String>
-UseResolvedVersion
[<CommonParameters>]
```

[#](#method-new-configurationxcodeprojectversion-string-switchparameter-string-switchparameter)

Parameter set: `ResolvedVersion`

## Description

Emits an Xcode project version configuration segment consumed by Invoke-ModuleBuild / Build-Module. Use it when a release pipeline should keep Apple app project versions in sync with the build recipe.

## Examples

### Set an explicit app version and build number

```powershell
New-ConfigurationXcodeProjectVersion -Path .\Tactra.xcodeproj -MarketingVersion 1.0.0 -BuildNumber 4
```

Updates MARKETING_VERSION and CURRENT_PROJECT_VERSION before the module build is staged.

### Use the resolved pipeline version as the app marketing version

```powershell
New-ConfigurationXcodeProjectVersion -Path .\Tactra.xcodeproj -UseResolvedVersion -BuildNumber 4
```

Uses the build pipeline's resolved version for MARKETING_VERSION.

## Parameters

**-BuildNumber String optional**

Optional value to assign to all CURRENT_PROJECT_VERSION entries.

**-Disabled SwitchParameter optional**

Disable this configuration entry without removing it from a build script.

**-MarketingVersion String requiredsets: ExplicitVersion**

The value to assign to all MARKETING_VERSION entries.

**-Path String requiredposition: 0aliases: FullName, ProjectPath**

Path to a .xcodeproj directory or project.pbxproj file. Relative paths resolve from the pipeline project root.

**-UseResolvedVersion SwitchParameter requiredsets: ResolvedVersion**

Uses the pipeline resolved version as the MARKETING_VERSION value.

## 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:A1427583FDCAAF1DD2EDAEB0677C121E11E5A7A6B8371C1DBEC4B6E99D814773 -->
