passepartoutvpn / openssl-apple

A script for compiling OpenSSL for Apple Devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not build on Xcode 11.7

adib opened this issue · comments

As per title.

Command:

caffeinate ./build-libssl.sh --version=1.1.1g --min-macos-sdk=10.9 --min-ios-sdk=9.0

Last 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
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
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
clang: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Environment:

  • Xcode 11.7 (11E801a)
  • macOS Catalina 10.15.6 (19G2021)
  • OpenSSL 1.1.1g

Full logs attached.

build-bin.tar.gz

Got it to work with macOS target 10.15