Skip to content

Commit

Permalink
Add self-signed signing to xcframework(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
freak4pc committed Apr 22, 2024
1 parent f06fa46 commit bfe5015
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,15 @@ Each release starting with RxSwift 6 includes `*.xcframework` framework binaries

Simply drag the needed framework binaries to your **Frameworks, Libraries, and Embedded Content** section under your target's **General** tab.

> **Note**: If you're using `RxCocoa`, be sure to also drag **RxCocoaRuntime.xcframework** before importing `RxCocoa`.
<img src="https://raw.githubusercontent.com/ReactiveX/RxSwift/main/assets/xcframeworks.png" alt="XCFrameworks instructions" width="65%">

> [!TIP]
> You may verify the identity of the binaries by comparing against the following fingerprint in Xcode 15+:
>
> `BD 80 2E 79 4C 8A BD DA 4C 3F 5D 92 B3 E4 C4 FB FA E4 73 44 10 B9 AD 73 44 2E F1 CE B0 27 61 40`
>
> <img src="https://raw.githubusercontent.com/ReactiveX/RxSwift/main/assets/xcframeworks_signing.png" alt="XCFrameworks Signature Fingerprint in Xcode 15+" width="65%">
### [Carthage](https://github.com/Carthage/Carthage)

Add this to `Cartfile`
Expand Down
Binary file added assets/xcframeworks_signing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion scripts/make-xcframeworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ for product in ${products[@]}; do
-output "./${PROJECT_NAME}.xcframework" | xcbeautify
fi

# Zip it!
# Code sign the binary
codesign -v --sign "RxSwift Distribution" "./${PROJECT_NAME}.xcframework"
done

# Zip all frameworks to a single ZIP
Expand Down

0 comments on commit bfe5015

Please sign in to comment.