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

Not having targetScheme for tvos breaks the app #1464

Open
mihaiblaga89 opened this issue Mar 14, 2024 · 0 comments
Open

Not having targetScheme for tvos breaks the app #1464

mihaiblaga89 opened this issue Mar 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mihaiblaga89
Copy link
Member

mihaiblaga89 commented Mar 14, 2024

Describe the bug
Not having

{
    "platforms": {
          "tvos": {
                  "schemeTarget": "RNVApp-tvOS"
              }
    }
}

will break the xcodebuild with error code 70, means that the target for the build was not found. We might want to default to it if not specified

info Found Xcode workspace "RNVApp.xcworkspace"
info Building (using "xcodebuild -workspace RNVApp.xcworkspace -configuration Debug -scheme RNVApp -destination id=D704E3E7-3468-476F-84C4-FA02C3C2CAD6")

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Error: Failed to build iOS project. "xcodebuild" exited with error code '70'. To debug build logs further, consider building your app with Xcode.app, by opening 'RNVApp.xcworkspace'.".

To Reproduce
Steps to reproduce the behavior:

  1. remove schemeTarget from template-starter and run it on tvos
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots or copy&paste
If applicable, add screenshots to help explain your problem.
If applicable, copy&paste the output of the command. Run the command with -i to get more debugging informations

Desktop (please complete the following information):

  • OS: [e.g. osx, windows 7, ubuntu 16.04]
  • Node Version [e.g. v10.16.3]
  • RNV Version [e.g. 0.25.0]

Additional context
Add any other context about the problem here.

@mihaiblaga89 mihaiblaga89 added the bug Something isn't working label Mar 14, 2024
@ElenaDiachenko ElenaDiachenko self-assigned this Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants