-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for visionOS #79
base: master
Are you sure you want to change the base?
Conversation
Thanks! Looks like CI is not currently running. Do you happen to know whether this compiles successfully on Swift 5.0? |
@dannys42 Good catch, Looks like
It can not be used inside a compound single line statement like this either:
This is actually a bummer because testing for
Ideas? Perhaps we can turn the checks the other way around, that is test for Linux:
or test for
ideas? |
@mman Thanks for checking! Yes, swift is a bit annoying in this space. I think your last option is probably the safest approach, though:
Also it seems closest to the actual intent -- i.e. it's not really the OS that we are about, it is the library we can import. |
Kudos, SonarCloud Quality Gate passed! |
@dannys42 Reworked to use Tested on Linux arm64 swift 5.7, 5.8, 5.9 via Docker (older docker swift images are Intel only and that I do not have anymore). Build OK, Tests fail on:
Not sure what is that, needs more investigation... |
@mman thanks so much for running those tests! Can you clarify which platform / version where you saw the unit test failure? (I don't see an issue on macOS with Xcode 15.) Is it all Linux versions you were able to test? |
Docker swift versions 5.0, 5.1, 5.2, 5.3, 5.4, 5.6 on Docker swift versions 5.7, 5.8, 5.9 on Docker swift 5.7, 5.8, 5.9 on
Will debug it further and let you know what I found @dannys42. |
I'd love to see this getting merged. Is there anything holding it off? The changes seem quite safe and shouldn't break anything. Just the merge conflict might need to get fixed. I'd love to be able to finally use Swift-JWT on visionOS! 🎉 @mman Thanks for your work, any help needed? |
@Jeehut Yes, the visionOS changes are super simple and isolated, yet as you can see from my last comment test suite is failing on a lot of systems - probably not because of my changes but that was something I wanted a clear opinion on. |
My debugging so far went nowhere. The lowest level C calls are returning unexpected error codes and I was not able to trace down why/what is failing so far. |
@mman Thank you for the quick answer. Have you considered checking if the same test suite fails happen if you run from the |
@Jeehut Yes, the master branch fails consistently since swift 5.7. I have filed a separate issue for this. |
Quality Gate passedIssues Measures |
Description
This PR makes
Cryptor
compile cleanly forvisionOS
targets. It's a work in progress but should be fairly straightforward and clean.How Has This Been Tested?
Compiling my
visionOS
app target withCryptor
added as a dependency.Checklist: