-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remove access to application launch options via @Application on macOS #100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this so quickly.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #100 +/- ##
==========================================
+ Coverage 84.78% 84.95% +0.18%
==========================================
Files 40 40
Lines 959 950 -9
==========================================
- Hits 813 807 -6
+ Misses 146 143 -3
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @philippzagar 👍
Remove access to application launch options via @Application on macOS
♻️ Current situation & Problem
The current version of Spezi crashes when using the
ApplicationDelegateAdaptor
with the.spezi()
view modifier on macOS platforms. This results from a broken assumption about the initialization order upon Spezi bootup on macOS (not Catalyst!): The.spezi()
view modifier is evaluated (and thereforeSpezi
initialized) beforeSpeziAppDelegate/applicationWillFinishLaunching()
is called.This currently leads to a
precondition
failure on macOS withinSpeziAppDelegate/applicationWillFinishLaunching()
asSpezi
is already initialized.Background: We initialize
Spezi
on macOS within theSpeziAppDelegate/applicationWillFinishLaunching()
so that the application launch options are accessible via@Application
(@Application(\.launchOptions)
).We noticed that error when lifting the SpeziSpeech module to visionOS & macOS: StanfordSpezi/SpeziSpeech#5
⚙️ Release Notes
📚 Documentation
Adjusted documentation in line about not supporting launch options on macOS anymore
✅ Testing
Manual testing
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: