You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/CreateXCFramework/Command+Options.swift
+15-2
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,13 @@ extension Command {
37
37
38
38
// MARK: - Output Options
39
39
40
-
@Option(help:ArgumentHelp("A list of platforms you want to build for. Can be specified multiple times. Default is to build for all platforms supported in your Package.swift, or all Apple platforms if omitted", valueName:TargetPlatform.allCases.map({ $0.rawValue }).joined(separator:"|")))
40
+
@Option(
41
+
help:ArgumentHelp(
42
+
"A list of platforms you want to build for. Can be specified multiple times."
43
+
+" Default is to build for all platforms supported in your Package.swift, or all Apple platforms if omitted",
@Option(help:ArgumentHelp("Where to place the compiled .xcframework(s)", valueName:"directory"))
@@ -46,7 +52,14 @@ extension Command {
46
52
@Flag(help:"Whether to wrap the .xcframework(s) up in a versioned zip file ready for deployment")
47
53
varzip=false
48
54
49
-
@Option(help:ArgumentHelp("The version number to append to the name of the zip file\n\nIf the target you are packaging is a dependency, swift-create-xcframework will look into the package graph and locate the version number the dependency resolved to. As there is no standard way to specify the version inside your Swift Package, --zip-version lets you specify it manually.", valueName:"version"))
55
+
@Option(
56
+
help:ArgumentHelp(
57
+
"The version number to append to the name of the zip file\n\nIf the target you are packaging is a dependency,"
58
+
+" swift-create-xcframework will look into the package graph and locate the version number the dependency resolved to."
59
+
+" As there is no standard way to specify the version inside your Swift Package, --zip-version lets you specify it manually.",
guard productNames.isEmpty ==falseelse{throwValidationError("No products to create frameworks for were found. Add library products to Package.swift or specify products/targets on the command line.")}
109
+
guard productNames.isEmpty ==falseelse{
110
+
throwValidationError(
111
+
"No products to create frameworks for were found. Add library products to Package.swift"
112
+
+" or specify products/targets on the command line."
0 commit comments