diff --git a/Makefile b/Makefile index 9752d9ba..639d4b3b 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ MACOSX_DEPLOYMENT_TARGET=10.15 XROS_DEPLOYMENT_VERSION=1.0 APPLETVOS_DEPLOYMENT_VERSION=12.0 +SIGNING_IDENTITY ?= "Apple Distribution: Marcin Krzyzanowski (67RAULRX93)" + CWD := $(abspath $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))) all: build frameworks @@ -17,4 +19,4 @@ build: $(CWD)/scripts/build.sh frameworks: - $(CWD)/scripts/create-frameworks.sh "Apple Distribution" \ No newline at end of file + $(CWD)/scripts/create-frameworks.sh $(SIGNING_IDENTITY) diff --git a/README.md b/README.md index b0f1a1f9..97965ea1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # OpenSSL-Universal -OpenSSL [CocoaPods](https://cocoapods.org/), [Carthage](https://github.com/Carthage/Carthage) and [Swift Package Manager](https://swift.org/package-manager/) package for iOS, macOS, tvOS, visionOS. A complete solution to OpenSSL. The package comes with precompiled libraries and includes a script to build newer versions if necessary. - -The current version contains binaries built with the latest iOS SDK, and the latest macOS SDK for all supported architectures (including macOS Catalyst). +OpenSSL [CocoaPods](https://cocoapods.org/), [Carthage](https://github.com/Carthage/Carthage) and [Swift Package Manager](https://swift.org/package-manager/) package for iOS, macOS, Catalyst, tvOS, visionOS. A complete solution to OpenSSL. The package comes with precompiled libraries and includes a script to build newer versions if necessary. ### Support & Sponsors @@ -41,17 +39,11 @@ You don't have to use the pre-built binaries I provide. You can build it locally ``` $ git clone https://github.com/krzyzanowskim/OpenSSL.git $ cd OpenSSL -$ make +$ make SIGNING_IDENTITY="Apple Distribution" ``` The result of a build process is put inside [Frameworks](Frameworks/) directory. -### Hardened Runtime (macOS) and Xcode - -Binary `OpenSSL.xcframework` (Used by the Swift Package Manager package integration) won't load properly in your app if the app uses **Sign to Run Locally** Signing Certificate with Hardened Runtime enabled. It is possible to setup Xcode like this. To solve the problem you have two options: -- Use proper Signing Certificate, eg. *Development* <- this is the proper action -- Use `Disable Library Validation` aka `com.apple.security.cs.disable-library-validation` entitlement - ### Swift Package Manager ```swift @@ -102,4 +94,3 @@ These libraries work for both iOS and macOS. It is your prerogative to check. As #### What is XCFramework? OpenSSL.xcframework is distributed as a multiplatform XCFramework bundle, for more information checkout the documentation [Distributing Binary Frameworks as Swift Packages](https://developer.apple.com/documentation/xcode/distributing-binary-frameworks-as-swift-packages) -