Closed
Description
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:
- Clone or download the repo
- Open the Xcode Project
- Archive the Project
- 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...