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

Updated build script to include headers into xcframeworks #61

Closed IhorShevchuk closed 1 year ago

jasonacox commented 1 year ago

HI @IhorShevchuk - thanks for submitting this!!! 🙏 I can't get the Github CI to build the change. I'll pull a copy and test it local.

jasonacox commented 1 year ago

My build on Apple Silicon (M1 iMac) was successful.

Creating archive with XCFrameworks for release v7.84.0...
  See archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0
xcframework successfully written out to: /Users/cox/Code/test/Build-OpenSSL-cURL/archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/xcframework/libcurl.xcframework
xcframework successfully written out to: /Users/cox/Code/test/Build-OpenSSL-cURL/archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/xcframework/libcrypto.xcframework
xcframework successfully written out to: /Users/cox/Code/test/Build-OpenSSL-cURL/archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/xcframework/libssl.xcframework
xcframework successfully written out to: /Users/cox/Code/test/Build-OpenSSL-cURL/archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/xcframework/libnghttp2.xcframework

Copying libraries to Test App ...
  See example/iOS Test App

Archiving Mac binaries for curl and openssl...
  See archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/bin

Testing Universal Mac binaries for arm64...
  cURL
archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/bin/curl: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64Mach-O 64-bit executable x86_64] [arm64]
archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/bin/curl (for architecture x86_64):    Mach-O 64-bit executable x86_64
archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/bin/curl (for architecture arm64): Mach-O 64-bit executable arm64
curl 7.84.0 (x86_64-apple-darwin) libcurl/7.84.0 OpenSSL/1.1.1p zlib/1.2.11 libidn2/2.3.2 nghttp2/1.48.0
Release-Date: 2022-06-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB SSL threadsafe TLS-SRP UnixSockets
  OpenSSL
archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/bin/openssl: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64Mach-O 64-bit executable x86_64] [arm64]
archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/bin/openssl (for architecture x86_64): Mach-O 64-bit executable x86_64
archive/libcurl-7.84.0-openssl-1.1.1p-nghttp2-1.48.0/bin/openssl (for architecture arm64):  Mach-O 64-bit executable arm64
OpenSSL 1.1.1p  21 Jun 2022
Thu Mar 23 22:33:53 2023 - End

Build Complete
  Duration 00h:16m:07s
jasonacox commented 1 year ago

Github Action - Build Successful: https://github.com/jasonacox/Build-OpenSSL-cURL/actions/runs/4507953478/jobs/7936219782

jasonacox commented 1 year ago

@IhorShevchuk This is a great addition. Thank you!!! 🙇