|
@@ -120,6 +120,8 @@ See: [Package.swift - manual](http://blog.krzyzanowskim.com/2016/08/09/package-s
|
|
|
|
|
|
Notice: Swift Package Manager uses debug configuration for debug Xcode build, that may result in significant (up to x10000) worse performance. Performance characteristic is different in Release build. To overcome this prolem, consider embed `CryptoSwift.xcframework` described below.
|
|
|
|
|
|
+Notice: As of Swift 5.3, it's impossible to use Swift Package Manager to distribute binary (pre-compiled, optimized) version of CryptoSwift.
|
|
|
+
|
|
|
#### XCFramework
|
|
|
|
|
|
XCFrameworks require Xcode 11 or later and they can be integrated similarly to how we’re used to integrating the `.framework` format.
|
|
@@ -127,6 +129,8 @@ Please us a script [scripts/build-framework.sh](scripts/build-framework.sh) to g
|
|
|
|
|
|
CryptoSwift.xcframework is a Release (Optimized) binary that offer best available Swift code performance.
|
|
|
|
|
|
+<img width="320" alt="Screen Shot 2020-10-27 at 00 06 32" src="https://user-images.githubusercontent.com/758033/97240586-f0878280-17ee-11eb-9119-e5a960417d04.png">
|
|
|
+
|
|
|
#### Embedded Framework
|
|
|
|
|
|
Embedded frameworks require a minimum deployment target of iOS 9 or macOS Sierra (10.12). Drag the `CryptoSwift.xcodeproj` file into your Xcode project, and add appropriate framework as a dependency to your target. Now select your App and choose the General tab for the app target. Find *Embedded Binaries* and press "+", then select `CryptoSwift.framework` (iOS, macOS, watchOS or tvOS)
|
|
@@ -137,10 +141,6 @@ Sometimes "embedded framework" option is not available. In that case, you have t
|
|
|
|
|
|

|
|
|
|
|
|
-<img width="320" alt="Screen Shot 2020-10-27 at 00 06 32" src="https://user-images.githubusercontent.com/758033/97240586-f0878280-17ee-11eb-9119-e5a960417d04.png">
|
|
|
-
|
|
|
-Notice: As of Swift 5.3, it's impossible to use Swift Package Manager to distribute binary version of CryptoSwift.
|
|
|
-
|
|
|
#### CocoaPods
|
|
|
|
|
|
You can use [CocoaPods](https://cocoapods.org/pods/CryptoSwift).
|