Home > other >  Difference between lipo -thin and -extract
Difference between lipo -thin and -extract

Time:01-09

What is the difference between lipo -thin arch_type and lipo -extract arch_type [-extract arch_type...] when used to get a "single architecture" static library from a fat static library?

The documentation says:

-extract arch_type [-extract arch_type...]
Take one universal input file and copy the arch_type from that universal file into a universal output file containing only that architecture. This command requires the -output option.

-thin arch_type
Take one input file and create a thin output file with the specified arch_type. This command requires the -output option.

But to me it seems just that -extract allows multiple architectures to be extracted, while -thin only allows one architecture at a time.
Is the result of the two commands the same or am I missing something?

CodePudding user response:

With extract it is possible to have a universal output given multiple architectures to extract. With thin, you cannot. You can only output a thin.

  •  Tags:  
  • Related