API Reference
Get-XcodeProjectVersion
Reads version information from an Xcode project.
Remarks
Reads MARKETING_VERSION and CURRENT_PROJECT_VERSION values from a .xcodeproj directory or a raw project.pbxproj file. The returned object includes all distinct values so release scripts can detect drift across targets or configurations before uploading to App Store Connect.
Examples
Read version values from an Xcode project
PS>
Get-XcodeProjectVersion -Path .\Tactra.xcodeproj
Returns the distinct marketing and build version values from the project 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.
Syntax
Get-XcodeProjectVersion -Path <String> [<CommonParameters>]#All Parameter SetsParameters
- Path String
- Path to a .xcodeproj directory or project.pbxproj file.
Outputs
PowerForge.XcodeProjectVersionInfo