Comments (18)
Not sure why Auth0 didn't just update this library as compatible for visionOS way back in June 2023 (maybe there's a staffing issue inside the company?).
Anyway, the library works just fine on visionOS once you update the Swift library to 5.9 and add in visionOS flags in this and the SimpleKeychain repositories. I have a fork that fixes things for the Swift Package Manager. I ignored the Cocoapods or Carthage stuff and got rid of the XCTest targets that aren't necessary.
https://github.com/senstream/Auth0.swift
Note: Just use this as a reference to get things up and running in your project.
from auth0.swift.
Hi @DanilRostov, thanks for raising this.
The SDK does not yet support VisionOS. Unfortunately, I don't have any news to share ATM regarding future plans around this.
I discovered the source code a little bit and found the next condition in "Auth0" file that are not passing: #if WEB_AUTH_PLATFORM. That should be the root cause why error occues on compilation stage.
WEB_AUTH_PLATFORM
is defined:
- https://github.com/auth0/Auth0.swift/blob/master/Package.swift#L6 for SPM
- https://github.com/auth0/Auth0.swift/blob/master/Auth0.podspec#L49-L55 for Cocoapods
from auth0.swift.
Very interested in visionOS support as well for our app.
Thank you for prioritizing this (lack of Auth0 support is a blocking issue for us).
from auth0.swift.
We're also very interested in VisionOS support. We love Auth0 and are using it for our MacOS and iOS apps! Would love to also use it for VisionOS.
Thanks for all the great work!
from auth0.swift.
@thefaj this is great! I'll check out your fork. Thanks!
FWIW I contacted Auth0 on X and asked them to share this thread w/ their engineering team and they said that they would.
from auth0.swift.
@cgcardona Awesome! And good luck with your visionOS work! 🥽
It looks like Apple WWDR reached out to Auth0 in December to get visionOS support added, but Auth0 marked the request as invalid: #818
from auth0.swift.
Hi @thefaj,
Not sure why Auth0 didn't just update this library as compatible for visionOS way back in June 2023 (maybe there's a staffing issue inside the company?).
The visionOS SDK only became stable last month with the release of Xcode 15.2. We can't add support for the non-stable SDK of a new Apple platform, as things are bound to change. For example, at first #if os(iOS)
evaluated to true on visionOS, then it changed to #if os(xrOS)
, and now it's #if os(visionOS)
.
once you update the Swift library to 5.9 and add in visionOS flags
That requires Xcode 15+; but as of today it's still possible to upload to the App Store apps built with Xcode 14. And that will be the case until the last days of April. So we can't drop support for Xcode 14 just yet, as per our support policy.
![Screenshot 2024-02-19 at 19 36 12](https://private-user-images.githubusercontent.com/5055789/306058842-d346b467-696d-48c1-829c-33f4ca0383cb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg2NDg0OTgsIm5iZiI6MTcwODY0ODE5OCwicGF0aCI6Ii81MDU1Nzg5LzMwNjA1ODg0Mi1kMzQ2YjQ2Ny02OTZkLTQ4YzEtODI5Yy0zM2Y0Y2EwMzgzY2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDIyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAyMjNUMDAyOTU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmRmN2RkZTZlMGU2ZDljZTgyMmI3ODhjNzI5MzUzZTE4M2IyNjA3MDUwNzA1OGEyNTA5MjUzNmNlZWY1ZGUxMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.NZsuzJC8W1XEzYQOZGvPwkToocyKe1Vr5-PY7ytTO0o)
I ignored the Cocoapods or Carthage stuff and got rid of the XCTest targets that aren't necessary.
We need to ensure to support Carthage and Cocoapods as well, and we can't simply remove the entire test target from Package.swift
.
It looks like Apple WWDR reached out to Auth0 in December to get visionOS support added, but Auth0 marked the request as invalid
That issue was created by an anonymous account with no activity and, as such, was not taken seriously.
Thanks for your patience on this.
from auth0.swift.
@Widcket Thanks for making this a priority.
from auth0.swift.
Related Issues (20)
- Swift Cannot read properties of undefined (reading ‘passwordless_method’) HOT 1
- AQA testing cannot access web context on web auth with auth0. HOT 3
- CI build error due to recent Package.swift update HOT 13
- Versions prior to 2.4.0 (namely the previous one 2.3.2) are not compatible with iOS 12 anymore HOT 2
- Crash with numeric bundle indentifier HOT 1
- The .start method callback is sometimes not called HOT 5
- The callback execution thread is not consistent HOT 4
- Auth0 not working in iOS 17. Not able to login HOT 8
- In v2 we can no longer build out our own token request HOT 9
- Login with OTP with custom realm HOT 1
- Custom minTTL support with renew() API HOT 2
- Passwordless authentication does not accept additional parameters HOT 2
- Privacy Manfiest HOT 4
- SWIFT TASK CONTINUATION MISUSE: clearSession(federated:) leaked its continuation! HOT 2
- Auth0 does not support visionOS
- Missing AuthenticationError helper for Revoked tokens
- Auth0 does not support Social Logins for visionOS HOT 1
- isNetworkError does not report case where Wifi + Mobile Data is off HOT 1
- Auth0 crashes due to swift task continuation misuse HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0.swift.