Skip to content
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

No tvOS target in iOS project...? #2

Closed
bohlec opened this issue Dec 14, 2022 · 3 comments
Closed

No tvOS target in iOS project...? #2

bohlec opened this issue Dec 14, 2022 · 3 comments

Comments

@bohlec
Copy link

bohlec commented Dec 14, 2022

Hi!

I have an existing bare Expo project that I'm trying to add tvOS support to. Since the prebuild command isn't really an option in my setup, I was trying to use this repo as a guide on how to properly set up the iOS project.

After installing, pod installing and opening the project in XCode - I don't see a new tvOS target, and I don't see tvOS added as a Supported Destination for the only target available.

If I add tvOS as a destination to the existing target and attempt to build and deploy to an Apple TV Simulator, I get build errors:

image

If I try and build to an iPhone 14 simulator, I get build errors:

image

I'm new to Expo and React Native (and XCode for that matter) so I might be misunderstanding something, but how can I get this working so I can try and replicate in my application?

Thank you!

@abdullahceylan
Copy link
Owner

abdullahceylan commented Dec 24, 2022

Hi @bohlec,
According to the errors, there are some missing packages. Firstly, did you change the react-native version as npm:react-native-tvos@0.69.6-0? Since TV functionality has been removed from the core package, this is required.

Also, you need to install expo-keep-awake and expo-modules-core packages according to the first error.

I'm not sure if you can push your sample project to somewhere I can pull, I can also have a look when I'm available.

Thanks.

@bohlec
Copy link
Author

bohlec commented Jan 3, 2023

Hi @abdullahceylan - thanks for the response. I managed to get things working for my application with the exception of expo-updates which wasn't as simple as updating the build targets in the podspec. You don't have a working patch for that package by chance, do you?

@abdullahceylan
Copy link
Owner

Hey @bohlec - Sorry for the late reply. Unfortunately, I haven't tried expo-updates with this template. I don't think I can do it anytime soon. I'll close the issue as the actual issue has been solved already but will update my comment when I find a chance to try with expo-updates.

Thanks.

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

No branches or pull requests

2 participants