Skip to content

Commit 35fc842

Browse files
committed
Do not add symbol table in ar utility
Xcode 26.4 and later enabled symbol table generation by default, this causes ar to ignore all non-macho files leaving only SYMDEF entry and results in corrupted archive.
1 parent 107c892 commit 35fc842

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fpm/util.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def ar_cmd
250250
end
251251
end
252252
# If no combination of ar and options omits timestamps, fall back to default.
253-
@@ar_cmd = ["ar", "-qc"]
253+
@@ar_cmd = ["ar", "-qcS"]
254254
FileUtils.rm_f([testarchive, emptyfile])
255255
return @@ar_cmd
256256
end # def ar_cmd

0 commit comments

Comments
 (0)