Francesco Piraneo G.
Francesco Piraneo G.

Reputation: 870

Use of OpenSSL with XCode 7.3

I'm writing an application that should be cross platform, so my idea is to write the full substrate in C then writing the user's interface related stuffs in Objective-C or other suitable language (i.e. C++ for linux).

For that application I have to use OpenSSL; as documented Apple dropped the support of this library since SDK 10.11; as I know OpenSSL should be available until SDK 10.10.

Now my question: I'd like to develop with XCode 7.3 but I'd like that my app should be also backward compatible with reasonably older version of OS X; my idea is that I have to install older SDK across the new XCode 7.3 then choose the right SDK to use under "Build settings" -> "Base SDK".

Can someone point me at a document describing how can I download and install older SDK on new XCode? On Apple Developer website I have found only older release of XCode but it will install a complete old release of XCode...

Thank you for your precious help.

Upvotes: 2

Views: 396

Answers (1)

Andrew Madsen
Andrew Madsen

Reputation: 21373

Rather than building with an old SDK, you should build and link with OpenSSL yourself. From the documentation:

If your app depends on OpenSSL, you should compile OpenSSL yourself and statically link a known version of OpenSSL into your app.

The version of OpenSSL shipped with OS X is old and out of date, anyway. Apple dropped support for it precisely because they couldn't ship newer versions without breaking backwards compatibility (OpenSSL is not API stable between releases).

Upvotes: 1

Related Questions