Skip to content

Commit

Permalink
export archive needs more options
Browse files Browse the repository at this point in the history
  • Loading branch information
Full Queue Developer committed May 20, 2022
1 parent 5f2fb7f commit b1cbcc0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/ShXcrun/Xcodebuild/Xcodebuild.exportArchive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ extension Xcodebuild {

public func exportArchive(_ sink: Sink = .terminal, archivePath: String, exportPath: String? = nil, exportOptionsPlistPath: String) throws {
var buffer = "xcrun xcodebuild -exportArchive -archivePath \(archivePath) -exportOptionsPlist \(exportOptionsPlistPath)"

if let exportPath = exportPath {
buffer.append(" -exportPath \(exportPath)")
}

if allowProvisioningUpdates {
buffer.append(" -allowProvisioningUpdates")
}

if allowProvisioningDeviceRegistration {
buffer.append(" -allowProvisioningDeviceRegistration")
}

try sh(sink, buffer)
}
}

0 comments on commit b1cbcc0

Please sign in to comment.