API Reference
Set-XcodeProjectVersion
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
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>]#All Parameter SetsParameters
- BuildNumber String
- Optional value to assign to all CURRENT_PROJECT_VERSION entries.
- MarketingVersion String
- The value to assign to all MARKETING_VERSION entries.
- PassThru SwitchParameter
- Returns the before/after update result.
- Path String
- Path to a .xcodeproj directory or project.pbxproj file.
Outputs
PowerForge.XcodeProjectVersionUpdateResult