Simulator build failing on Xcode 11.6
adib opened this issue · comments
The scripts doesn't seem be working with Xcode 11.6. Building for the iOS Simulator failed due to what seems to be a linker flag problem.
Example invocation:
caffeinate ./build-libssl.sh --version=1.1.1g --archs="ios_x86_64"
Error:
ld: building for iOS Simulator, but linking in .tbd file (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd) built for macOS/Mac Catalyst, file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64
Full log here: build-openssl-1.1.1g.log.gz
Output of ./build-libssl.sh --help
:
Options for OpenSSL 1.0.2 and lower ONLY
--archs="ARCH ARCH ..."
Use --targets
instead. Pick among:
DEFAULTTARGETS="ios-sim-cross-x86_64 ios64-cross-arm64 ios64-cross-arm64e tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64 watchos-cross-armv7k watchos-cross-arm64_32 watchos-sim-cross-i386"