passepartoutvpn / openssl-apple

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

Don’t symlink macOS framework if not building it #17

Closed ilammy closed 4 years ago

ilammy commented 4 years ago

If we are not building macOS targets then the framework has not been created and we not should go ahead with creating symlinks in it. Check whether the framework directory is there, if it’s not then don’t attempt to create symlinks.

This allows to build OpenSSL, say, only for iOS:

./build-libssl.sh --targets="ios-cross-armv7"
./create-openssl-framework.sh dynamic

without failing on skipped macOS framework.