Skip to content

IncludeNativeLibrariesForSelfExtract does not include Mach-O universal binaries #113215

Closed
@pjc50

Description

@pjc50

Description

I have a library which identifies in 'file' as

Mach-O universal binary with 2 architectures: [x86_64:\012- Mach-O 64-bit x86_64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS|HAS_TLV_DESCRIPTORS>] [\012- arm64:\012- Mach-O 64-bit arm64 dynamically linked shared library, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|NO_REEXPORTED_DYLIBS|HAS_TLV_DESCRIPTORS>]

It has the magic number 'ca fe ba be' in the first four bytes. For some reason, this is considered to be 'Unknown' and therefore not added unless the option IncludeAllContentForSelfExtract is set to True.

Reproduction Steps

Add a Mach-O universal binary .dylib to a single-file project on OSX

Set IncludeNativeLibrariesForSelfExtract to True

Expected behavior

dylib should be included in self-extracted files

Actual behavior

dylib is not included

Regression?

No response

Known Workarounds

Use IncludeAllContentForSelfExtract

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions