Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#191 0 comentarios 3 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
ios, react-native, typescript

Línea de trabajo

Comienza siguiendo la ruta de iOS utilizada por yarn owl test y compárala con el flujo exitoso de yarn owl build --platform ios. Inspecciona cómo los valores workspace, scheme, configuration y device de la configuración generan el comando xcrun simctl install. La tarea estará terminada cuando un scheme y un app name distintos puedan compilar y ejecutar pruebas desde una sola configuración.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
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.

Lenguaje dominante
TypeScript
Estrellas
694
Forks
27
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FormidableLabs/react-native-owl

Todos los issues de FormidableLabs/react-native-owl

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.