Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/xclibtool/XCLibtoolMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class XCLibtoolMain {
let args = ProcessInfo().arguments

do {
let mode = try XCLibtoolHelper.buildMode(args: args)
let mode = try XCLibtoolHelper.buildMode(args: Array(args.dropFirst()))
try XCLibtool(mode).run()
} catch {
exit(1, "Failed with: \(error). Args: \(args)")
Expand Down
2 changes: 2 additions & 0 deletions Sources/xclibtoolSupport/XCLibtoolHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public class XCLibtoolHelper {
case "-dependency_info":
dependencyInfo = args[i + 1]
i += 1
case "-static":
() // just ignore it for now
case let input where ["", "a"].contains(URL(string: args[i])?.pathExtension):
// Support for static frameworks (no extension) and static libraries (.a)
inputLibraries.append(input)
Expand Down