Skip to content

Exclude Live Activity code from Mac Catalyst builds#601

Open
bjorkert wants to merge 1 commit intodevfrom
fix/mac-catalyst-live-activity
Open

Exclude Live Activity code from Mac Catalyst builds#601
bjorkert wants to merge 1 commit intodevfrom
fix/mac-catalyst-live-activity

Conversation

@bjorkert
Copy link
Copy Markdown
Contributor

Summary

  • Wrap all Live Activity references behind #if !targetEnvironment(macCatalyst) compiler directives to fix build errors when targeting Mac Catalyst, since ActivityKit is not available on that platform.
  • Affected files: LiveActivityManager, StorageCurrentGlucoseStateProvider, LiveActivitySettingsView, SettingsMenuView, MainViewController, SceneDelegate, RestartLiveActivityIntent.

Wrap all Live Activity references behind #if !targetEnvironment(macCatalyst)
compiler directives to fix build errors when targeting Mac Catalyst, since
ActivityKit is not available on that platform.
@bjorkert bjorkert requested a review from marionbarker April 11, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant