NativeScript / NativeScript/nativescript-cli
Unable to use --provision option to build or run iOS apps
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.1k
- Forks
- 204
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 8
Descripción
Environment
OSX: 10.15.4
Output of tns doctor:
✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.7.4 version and is up to date.
✔ Component tns-core-modules has 6.5.2 version and is up to date.
✔ Component tns-ios has 6.5.1 version and is up to date.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 11.5.0 satisfies minimum required version 10.
Not interested in Android in this project, so Android bits are not configured
Describe the bug
I am unable to run or build the app.
I can build the prepared app using XCode (once I fix the signing configuration, another potential issue with prepare command)
When trying to list available provisioning profiles:
tns <run|build|provision> ios --provision
Results in the not so friendly:
Expected """ or [^'"'] but "'" found.
When I run the command with the logging level increased:
tns <run|build|provision> ios --provision --log trace
I get the more useful:
...
Current CLI version: 6.7.4
Project dir from hooksArgs is: undefined.
Hooks directories: [ '/Users/j/Projects/visionlab/sad-dev/hooks' ]
BeforeHookName for command resolveCommand is before-resolveCommand
Project dir from hooksArgs is: undefined.
Hooks directories: [ '/Users/j/Projects/visionlab/sad-dev/hooks' ]
AfterHookName for command resolveCommand is after-resolveCommand
Validate options for platform: iOS
SyntaxError: Expected "\"" or [^'"'] but "'" found.
at peg$buildStructuredError (/usr/local/lib/node_modules/nativescript/node_modules/ios-mobileprovision-finder/parsers/security-find-identity.js:314:12)
at Object.peg$parse [as parse] (/usr/local/lib/node_modules/nativescript/node_modules/ios-mobileprovision-finder/parsers/security-find-identity.js:999:11)
at Object.read (/usr/local/lib/node_modules/nativescript/node_modules/ios-mobileprovision-finder/index.ts:243:43)
at IOSProvisionService.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/services/ios-provision-service.js:80:55)
...
I tried to checkout what was going on above but it's complicated. I think it fails when trying to parse provisioning profiles.
Sadly the same error occurs when I try to supply a provisioning profile:
tns run ios --provision <UUID or Name>
Same thing happens on a newly created app.
Trying to run the app with no provisioning profile supplied in the command line fails with a signing error (regardless of the PROVISIONING_PROFILE or DEVELOPMENT_TEAM) being set in app/App_Resources/build.xcconfig but that's probably another issue.
To Reproduce
tns create sad-dev
cd sad-dev
tns run ios --provision
Expected behavior
A list of provisioning profiles
Additional context
I am running on Catalina. All seemed to work before I updated the OS. But sadly other stuff changed as well: NS version, etc...
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el problema con tns create sad-dev y después tns run ios --provision en el entorno indicado. Empieza con ios-provision-service.js y el parser ios-mobileprovision-finder, especialmente parsers/security-find-identity.js, donde el trace muestra que el análisis falla. Se considera terminado cuando se puedan listar los perfiles de aprovisionamiento y usar un perfil proporcionado sin el error de sintaxis indicado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- ios, javascript
- Área
- cli, mobile
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100