-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
RCTModalHostView is tied to tvOS / RCTTVRemoteHandler.h file #17027
Comments
@dlowder-salesforce Would wrapping this import in |
@mgriepentrog yes that sounds like the right fix. |
@mgriepentrog I just submitted a PR to fix this. |
I confirm adding 'tvOS' as a React pod subspec works around this Xcode build blocker. @grabbou, cherry pick for 0.52 hotfix? |
Summary: Fix issue #17027 (`RCTModalHostView` has a tvOS dependency that was not wrapped in `TARGET_OS_TV`) Existing test automation should pass. [GENERAL] [BUGFIX] [tvOS] Fix cocoapods compile issue in RCTModalHostView Closes #17502 Differential Revision: D6688166 Pulled By: hramos fbshipit-source-id: 38297f439f75a8303f59f83b92e004c6c73d9bf6
I'll cherry-pick it and release with next chunk of commits. |
Summary: Fix issue #17027 (`RCTModalHostView` has a tvOS dependency that was not wrapped in `TARGET_OS_TV`) Existing test automation should pass. [GENERAL] [BUGFIX] [tvOS] Fix cocoapods compile issue in RCTModalHostView Closes #17502 Differential Revision: D6688166 Pulled By: hramos fbshipit-source-id: 38297f439f75a8303f59f83b92e004c6c73d9bf6
Summary: Fix issue facebook#17027 (`RCTModalHostView` has a tvOS dependency that was not wrapped in `TARGET_OS_TV`) Existing test automation should pass. [GENERAL] [BUGFIX] [tvOS] Fix cocoapods compile issue in RCTModalHostView Closes facebook#17502 Differential Revision: D6688166 Pulled By: hramos fbshipit-source-id: 38297f439f75a8303f59f83b92e004c6c73d9bf6
adding 'tvOS' fixed this bug for me. Thanks a lot. Already wasted half a day |
@hramos we can close this |
Closing @dlowder-salesforce 9954499 |
Is this a bug report?
Yes
We're using cocoapods are not able to build at the latest available hash in the repo 71b498b
If we add tvOS to out podspec (which makes no sense since we only do iOS development, everything is able to compile). So if this is the intended behaviour (which I dont think) I would suggest we add RCTTVRemoteHandler.h into the Core subspec.
But since I dont believe this intended we can see that all TV files are excluded in the Core podspec
https://github.com/facebook/react-native/blob/master/React.podspec#L55
Have you read the Contributing Guidelines?
Yes
Environment
Very likely because we're running against master
Steps to Reproduce
1 Run latest master with cocoapods
Our podfile
This will fail that RCTTVRemoteHandler.hs file is not found
add 'tvOs'
And it will find it
Expected Behavior
I should be able to compile RCTModalHostView without the dependency of tvOS's header files
Actual Behavior
When compiling the builds failes
The text was updated successfully, but these errors were encountered: