Skip to content

Commit

Permalink
Do not generate the Package.swift file in create-xcframework script i…
Browse files Browse the repository at this point in the history
…f not needed
  • Loading branch information
Frizlab committed Feb 24, 2024
1 parent 8b41fe5 commit ac96965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/create-xcframeworks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ struct CreateXcframeworks : AsyncParsableCommand {
(platform: "watchOS Simulator", variant: nil),
]

try writePackageFile(version: version, checksums: Dictionary(uniqueKeysWithValues: types.map{ ($0.name, nil) }))
if version != nil {
try writePackageFile(version: version, checksums: Dictionary(uniqueKeysWithValues: types.map{ ($0.name, nil) }))
}

var checksums = [String: String]()
for type in types {
Expand Down

0 comments on commit ac96965

Please sign in to comment.