Fixes mls-rs-crypto-cryptokit to take the target aarch into account when building. Currently it always assumes macos as the target.
Explicitly added support for iphone and iphonesimulator. A more complete fix might want to consider watchOS and TVOS but I currently can't test on those.
Call-outs:
The @available annotations SHOULD be redundant and not needed by the swift compiler since we are specifying the min target OS to be 17. However, i still get errors unless I add them. More investigation is needed on this but parking it for now since the iOS17 reqs are a hard blocker for my project to adopt crypto kit.
Testing:
Tested that building works for the provided archs by running the following. (Assumes you've already installed the toolchains for these archs) on an M1 Mac.
Issues:
TODO
Description of changes:
Fixes mls-rs-crypto-cryptokit to take the target aarch into account when building. Currently it always assumes macos as the target.
Explicitly added support for iphone and iphonesimulator. A more complete fix might want to consider watchOS and TVOS but I currently can't test on those.
Call-outs:
The @available annotations SHOULD be redundant and not needed by the swift compiler since we are specifying the min target OS to be 17. However, i still get errors unless I add them. More investigation is needed on this but parking it for now since the iOS17 reqs are a hard blocker for my project to adopt crypto kit.
Testing:
Tested that building works for the provided archs by running the following. (Assumes you've already installed the toolchains for these archs) on an M1 Mac.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.