Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 64472d58bf | |||
| 3d96dddc91 | |||
| deb6adcb70 |
@@ -47,7 +47,8 @@ public class XCLibtoolHelper {
|
||||
case "-dependency_info":
|
||||
dependencyInfo = args[i + 1]
|
||||
i += 1
|
||||
case let input where args[i].starts(with: "/") && ["", "a"].contains(URL(string: args[i])?.pathExtension):
|
||||
case let input where input.starts(with: "/") &&
|
||||
["", "a"].contains(URL(fileURLWithPath: input).pathExtension):
|
||||
// Assume always absolute paths to the library
|
||||
// Support for static frameworks (no extension) and static libraries (.a)
|
||||
inputLibraries.append(input)
|
||||
|
||||
@@ -74,4 +74,15 @@ class XCLibtoolHelperTests: XCTestCase {
|
||||
inputs: ["/arch1/static", "/arch2/static"]
|
||||
))
|
||||
}
|
||||
|
||||
func testRecognizesPathsWithSpaces() throws {
|
||||
let mode = try XCLibtoolHelper.buildMode(
|
||||
args: ["-static", "-o", "/universal/static", "/arch/with space/static"]
|
||||
)
|
||||
|
||||
XCTAssertEqual(mode, .createUniversalBinary(
|
||||
output: "/universal/static",
|
||||
inputs: ["/arch/with space/static"]
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user