cossacklabs / themis

Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.
https://www.cossacklabs.com/themis
Apache License 2.0
1.87k stars 143 forks source link

Swift Package Manager support #530

Closed lordcodes closed 3 years ago

lordcodes commented 5 years ago

I have:


Issue description

When using Xcode 11 many developers will inevitably be moving dependencies over to the Swift Package Manager instead of using Cocoapods or Carthage.

vixentael commented 5 years ago

SPM support is definitely on our list, but we'd be happy to get some help here :)

vixentael commented 3 years ago

As Apple Silicon is here, and it makes impossible to have .framework that contains arm64 slice and arm64-iphonesimulator slice, we're looking at building Themis as .xcframework now.

heysaik commented 3 years ago

Any updates to this?

vixentael commented 3 years ago

work in progress, a bit stuck with xcframework'ing openssl

vixentael commented 3 years ago

I don't lie — we are working on SPM! :) @julepka

[Xcode is tricky to work with large C-based projects, so for starters we will distribute ThemisSPM as built XCFramework, not as code.]

https://github.com/cossacklabs/themis/pull/789#pullrequestreview-610841800 https://github.com/cossacklabs/openssl-apple/pull/22

ETA: couple of weeks for beta release, ~1-2 month for stable release with docs and examples.

vixentael commented 3 years ago

It's official!

Since 0.13.8 Themis supports SPM!

Checkout docs: https://docs.cossacklabs.com/themis/languages/swift/installation/#installing-with-spm

Viva @julepka 👏

heysaik commented 3 years ago

Awesome thank you!