Open pr33ch opened 1 week ago
Hi @pr33ch, thanks for your interest!
Yes, adding .iOS(.v18)
would be how to add support for building on iOS.
However, swift-homomorphic-encryption isn't intended to be used for client-side crypto (see https://developer.apple.com/documentation/cryptokit for on-device crypto APIs), so we won't add .iOS(.v18)
into the supported platform list at this time.
I am trying to use HomomorphicEncryption in my iOS project on Xcode 16.1 with minimum deployment iOS 18.0. After adding the
swift-homomorphic-encryption
(version 1.0.2) package as a package dependency using Xcode's package manager, I get the following error message when trying to build:When cloning the repo locally and trying to build it for iOS 18 (also using Xcode 16.1) in isolation without my own project, I get similar error messages, but with other package products requiring a min platform version of 16.0.
As a workaround, I can modify
swift-homomorphic-encryption/Package.swift
to includeiOS(.v18)
inpackage.platforms
:The project will then build successfully without the minimum platform version errors (and additional compiler complaints about specific features only being supported in iOS 18). With the above change, I can also successfully build my own project with the cloned repo as a local package dependency. What I'm wondering is:
swift-homomorphic-encryption
package?