passepartoutvpn / openssl-apple

A script for compiling OpenSSL for Apple Devices.
Apache License 2.0
139 stars 65 forks source link

Add new arm64 targets (Apple Silicon) #25

Closed keeshux closed 3 years ago

keeshux commented 3 years ago

This PR backports https://github.com/balthisar/openssl-xcframeworks/pull/6 and integrates 3 new targets:

The arm64 target for iOS Simulator, however, had to be temporarily disabled (see https://github.com/cossacklabs/openssl-apple/pull/12) in podspec, due to lipo being unable to cope with same architecture for different platforms (namely iOS and iOS Simulator). In other words, current script can't handle ios-sim-cross-arm64 and ios64-cross-arm64 targets together, because lipo would fail in that case.

This will be eventually fixed by moving to XCFrameworks.