Skip to content

[tvOS] Fix build error#4060

Merged
m-bert merged 1 commit intomainfrom
@mbert/tvos-crash
Apr 8, 2026
Merged

[tvOS] Fix build error#4060
m-bert merged 1 commit intomainfrom
@mbert/tvos-crash

Conversation

@m-bert
Copy link
Copy Markdown
Contributor

@m-bert m-bert commented Apr 7, 2026

Description

In #3991 we introduced some changes to Hover. However, we forgot to guard it with CHECK_TARGET macro, which resulted in build errors on tvOS.

Fixes #4059

Test plan

Tested on tvos-example from Reanimated (that it builds) and our expo-example.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a tvOS build break introduced by iOS hover-pointer enhancements by ensuring iOS 16.1-only hover APIs are excluded from tvOS compilation.

Changes:

  • Wraps the iOS 16.1 UIHoverGestureRecognizer.zOffset pointer-type refinement logic with CHECK_TARGET(16_1) to avoid tvOS-unavailable API usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@m-bert m-bert merged commit d4f7818 into main Apr 8, 2026
7 checks passed
@m-bert m-bert deleted the @mbert/tvos-crash branch April 8, 2026 06:07
m-bert added a commit that referenced this pull request Apr 9, 2026
## Description

In #3991 we introduced some changes to `Hover`. However, we forgot to
guard it with `CHECK_TARGET` macro, which resulted in build errors on
tvOS.

Fixes #4059 

## Test plan

Tested on `tvos-example` from Reanimated (that it builds) and our
expo-example.
m-bert added a commit that referenced this pull request Apr 9, 2026
## Description

Cherry pick thread for release 2.31.0

## List of PRs
-
#3988
-
#4060
-
#4014
-
#4067

## Test plan

🚀
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.

[tvOS] Compile error with 2.31.0 on tvOS using Xcode 26.4

3 participants