lipo icon indicating copy to clipboard operation
lipo copied to clipboard

lipo with "-info" / "-archs" result in "invalid magic number"

Open JCash opened this issue 2 years ago • 1 comments

Hi, and thanks for this great project!

While I suspect it's not as common that the -archs/-info commands are used, I think it's probably good to list it as a difference in functionality from the standard lipo tool.

Currently, when invoking it it produces an error:

$ ./lipo -archs ./mylib.a
Error: can't figure out the architecture type of: ./mylib.a: invalid magic number

# original lipo
$ lipo -archs ./mylib.a
arm64

JCash avatar Oct 12 '23 14:10 JCash

Thank you for your report! It needs to handle ar file format. I will address it after investigating the format.

konoui avatar Oct 17 '23 11:10 konoui

addressed the issue in version v0.9.0

konoui avatar Jun 24 '24 11:06 konoui