Skip to content

fix: declare tvos platform in podspec#31

Merged
janicduplessis merged 2 commits intoAppAndFlow:mainfrom
aigeneratedpiece:fix/tvos-fabric-podspec
Apr 4, 2026
Merged

fix: declare tvos platform in podspec#31
janicduplessis merged 2 commits intoAppAndFlow:mainfrom
aigeneratedpiece:fix/tvos-fabric-podspec

Conversation

@aigeneratedpiece
Copy link
Copy Markdown
Contributor

@aigeneratedpiece aigeneratedpiece commented Apr 4, 2026

Summary

Fixes #30

The tvOS app is crashing at runtime. I don't have much experience with native code so I got an assistance from Codex. Here's the explanation of the problem:

react-native-ease registers a Fabric component on Apple targets, but the podspec only declared :ios in
Ease.podspec:13.

In a tvOS Expo app, autolinking still generates the RCTThirdPartyComponentsProvider entry for
EaseView, but CocoaPods does not build/link the native class for tvOS. At startup React Native builds the provider dictionary, one of the values is nil, and it crashes with the exact NSDictionary ... attempt to insert nil object exception.

This PR patches the podspec to declare tvOS support in Ease.podspec:11. The native iOS code in ios/EaseView.mm does not appear to use obviously iOS-only APIs, so the registration mismatch is the real issue.

This PR is generated by Codex

@janicduplessis
Copy link
Copy Markdown
Collaborator

Thanks, looks good!

@janicduplessis janicduplessis merged commit 0071489 into AppAndFlow:main Apr 4, 2026
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.

Apple TV simulator crashes due to Uncaught exception 'NSInvalidArgumentException'

3 participants