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

Test Command does not work properly if Scheme name is different from the name of the app #191

Open
2 tasks done
PedroRobalo1994 opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@PedroRobalo1994
Copy link

PedroRobalo1994 commented Jan 22, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

When using this config file in the build which is the proper one to build our app:

"ios": {
    "workspace": "ios/Foo.xcworkspace",
    "scheme": "Foo",
    "configuration": "Debug",
    "device": "iPhone 15",
},

We are able to build successfully with this command yarn owl build --platform ios but when we try to run the test command, it fails to launch the app with this error:

  shortMessage: 'Command failed with exit code 2: xcrun simctl install iPhone 15 Foo.app',
  command: 'xcrun simctl install iPhone 15 Foo.app',
  escapedCommand: 'xcrun simctl install "iPhone 15" Foo.app',

But if we change now the Scheme to the name of the App we are able to run the tests with this new config

"ios": {
    "workspace": "ios/Foo.xcworkspace",
    "scheme": "Bar",
    "configuration": "Debug",
    "device": "iPhone 15",
},

So we need to have one config to build the app and another to run the tests.

@PedroRobalo1994 PedroRobalo1994 added the bug Something isn't working label Jan 22, 2025
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

1 participant