Skip to content

Commit c229d13

Browse files
committed
fix: user encounter error when use option: --xc-setting OTHER_SWIFT_FLAGS="-debug-prefix-map $PWD=."
1 parent b426506 commit c229d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CreateXCFramework/BuildSetting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct BuildSetting: ExpressibleByArgument {
1616
let value: String
1717

1818
init?(argument: String) {
19-
let components = argument.components(separatedBy: "=")
19+
let components = argument.split(separator: "=", maxSplits: 1)
2020
guard components.count == 2 else { return nil }
2121
self.name = components[0].trimmingCharacters(in: .whitespacesAndNewlines)
2222
self.value = components[1].trimmingCharacters(in: .whitespacesAndNewlines)

0 commit comments

Comments
 (0)