jasonacox / Build-OpenSSL-cURL

Scripts to build OpenSSL, HTTP/2 (nghttp2) and cURL (libcurl) for MacOS, iOS and tvOS devices (x86_64, armv7, armv7s, arm64, arm64e). Now Supporting Apple Silicon, OpenSSL 3.0.x with TLS 1.3 and Mac Catalyst builds.
MIT License
432 stars 132 forks source link

How could i use this version(1.1.1g) for apple watch along with iOS app ?There was a old project using the version 1.0.2d which was also support the Apple watch. So now i want to update the openssl version and i am new to this so i want to know how could i do it ? #40

Closed sunilsingh28011 closed 4 years ago

jasonacox commented 4 years ago

Hi @sunilsingh28011, the 1.0.2d version of OpenSSL is end of life and no longer supported for security updates. I recommend against using that version and adapting the WatchOS project you found to use the long term support 1.1.1 version.

Note, if you do want to build 1.0.2d, you can still do that using the -o option on the build script:

./build.sh -o 1.0.2d 

To use the newer version, run build.sh without any options. Copy the libraries into your WatchOS project that worked with the older OpenSSL version and see if that works.

sunilsingh28011 commented 4 years ago

@jasonacox Thanks for your reply. I want to update the version but I am new to do this So can you suggest me the step to step guidance, it will be appreciated more? Thanks for your help.

jasonacox commented 4 years ago

What is the WatchOS project you are working on? Is it on GitHub?

If you just want to know how to build the latest version, do this from your command line:

git clone https://github.com/jasonacox/Build-OpenSSL-cURL.git
cd Build-OpenSSL-cURL
./build.sh

Once it is complete, you will find the libraries built in the ./archive folder. Alternatively, you can just use the libraries I recently built by downloading them from here: https://github.com/jasonacox/Build-OpenSSL-cURL/tree/master/examples/iOS%20Test%20App/libs

Install those libraries into your Xcode project.

sunilsingh28011 commented 4 years ago

@jasonacox my project is for the client which is ios app and some notification can manage from apple watch . for that openssl 1.0.2d is version is used. Should I delete the old full library and start with the new version?

jasonacox commented 4 years ago

I would create a backup of the old library, delete it and then install the new version.