Skip to content

Xcode: Link matching zlib for iOS Simulator SDK

Gregor Jasny requested to merge gjasny/cmake:xcode12-link-matching-zlib into master

The XcodeRemoveExcessiveISystem test runs find_package(ZLIB) which returns an SDK-relative path to zlib.tlb. When the test switches the SDK for building to something different than the SDK used for configuration the linker rightfully complains about the mismatch.

The fix is to configure and build with the same SDK.

Merge request reports