Xcode: Link matching zlib for iOS Simulator SDK
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.