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.186
Language: C# Updated: 2026-11-04
Command

New-AppleAppArchive

Module
PSPublishModule
Inputs
None
Outputs
PowerForge.AppleAppArchiveResult

Creates an Apple app .xcarchive using xcodebuild.

Syntax

New-AppleAppArchive
[-AdditionalArgument <String[]>]
[-AllowProvisioningUpdates]
[-ArchivePath <String>]
[-ArchiveRoot <String>]
[-ArchiveVariant <Default|MacCatalyst>]
[-Configuration <String>]
[-Destination <String>]
[-Platform <ApplePlatform>]
[-ProjectPath] <String>
-Scheme <String>
[-TimeoutMinutes <Int32>]
[-Workspace]
[-XcodeBuild <String>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Example 1

New-AppleAppArchive -Scheme 'Value'

Parameters

-AdditionalArgument String[] optional
Additional structured arguments appended to the archive command.
-AllowProvisioningUpdates SwitchParameter optional
Allows Xcode to create or update signing assets during archive.
-ArchivePath String optional
Output .xcarchive path.
-ArchiveRoot String optional
Directory used for generated archive paths.
-ArchiveVariant AppleArchiveVariant optional
Optional archive destination variant, such as Mac Catalyst.
Possible values: Default, MacCatalyst
-Configuration String optional
Build configuration.
-Destination String optional
Explicit xcodebuild destination.
-Platform ApplePlatform optional
Apple platform used to resolve the generic destination.
Possible values: iOS, iPadOS, macOS, tvOS, watchOS, visionOS
-ProjectPath String requiredposition: 0aliases: FullName, Path
Path to the Xcode project or workspace.
-Scheme String required
Xcode scheme to archive.
-TimeoutMinutes Int32 optional
Maximum archive runtime in minutes.
-Workspace SwitchParameter optional
ProjectPath points to a workspace instead of a project.
-XcodeBuild String optional
xcodebuild executable name or path.

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.