Skip to content

Archive Failing on Xcode 11.4 / 11.5 #822

Closed
@mRs-

Description

@mRs-

Describe the bug

When using Xcode 11.4 or 11.5 and archiving the grpc-swift implementation in a Framework or a static lib xcode is crashing with an Libtool failed command without an exit code. All grpc-swift version are 1.0.0-alpha.1 to 1.0.0-alpha.12.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: object: /Users/mariuslandwehr/Library/Developer/Xcode/DerivedData/Networking-cskqpnmvfnmzorctpckvxmsmisys/Build/Intermediates.noindex/ArchiveIntermediates/Networking/BuildProductsPath/Release/CGRPCZlib.o malformed object (string table at offset 0 with a size of 8, overlaps Mach-O headers at offset 0 with a size of 160)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: object: /Users/mariuslandwehr/Library/Developer/Xcode/DerivedData/Networking-cskqpnmvfnmzorctpckvxmsmisys/Build/Intermediates.noindex/ArchiveIntermediates/Networking/BuildProductsPath/Release/CNIOLinux.o malformed object (string table at offset 0 with a size of 8, overlaps Mach-O headers at offset 0 with a size of 160)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: object: /Users/mariuslandwehr/Library/Developer/Xcode/DerivedData/Networking-cskqpnmvfnmzorctpckvxmsmisys/Build/Intermediates.noindex/ArchiveIntermediates/Networking/BuildProductsPath/Release/CGRPCZlib.o malformed object (string table at offset 0 with a size of 8, overlaps Mach-O headers at offset 0 with a size of 160)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: object: /Users/mariuslandwehr/Library/Developer/Xcode/DerivedData/Networking-cskqpnmvfnmzorctpckvxmsmisys/Build/Intermediates.noindex/ArchiveIntermediates/Networking/BuildProductsPath/Release/CNIOLinux.o malformed object (string table at offset 0 with a size of 8, overlaps Mach-O headers at offset 0 with a size of 160)
Command Libtool failed with a nonzero exit code

To reproduce

To Reproduce clone or zip https://github.com/mRs-/Xcode-11.4-Libtool-Regression

Steps to reproduce the bug you've found:

  1. Clone or download the repo
  2. Open the Xcode Project
  3. Archive the Project
  4. LibTool is failing

Expected behaviour

Libtool is not failing and the network framework is building

Additional information

Currently the only working solution is to build my macOS application under Xcode 11.3...

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions