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

Errores tratando de correr app-citizen en XCode #30

Open
enzymevc opened this issue Mar 30, 2020 · 6 comments
Open

Errores tratando de correr app-citizen en XCode #30

enzymevc opened this issue Mar 30, 2020 · 6 comments

Comments

@enzymevc
Copy link

Hola, gracias por este proyecto, es de mucha utilidad!
Estoy tratando de correr el app iOS en XCode y estoy teniendo los siguientes errores. Me podran ayudar, por favor?

ERROR: Required native-bridge.js file in Capacitor not found. Bridge will not function!
⚡️ ❌ Capacitor: FATAL ERROR
⚡️ ❌ Error was: The operation couldn’t be completed. (Capacitor.BridgeError error 0.)
⚡️ ❌ Unable to export required Bridge JavaScript. Bridge will not function.
⚡️ ❌ You should run "npx capacitor copy" to ensure the Bridge JS is added to your project.
⚡️ ❌ Please verify your installation or file an issue
Loading network plugin
2020-03-30 13:22:24.326188-0300 Open Coronavirus[48509:9516116] CAPKeyboard: resize mode - native
⚡️ ERROR: Unable to load public/index.html
⚡️ This file is the root of your web app and must exist before
⚡️ Capacitor can run. Ensure you've run capacitor copy at least
⚡️ or, if embedding, that this directory exists as a resource directory.

Al correr "npx capacitor copy" en /open-coronavirus/app-citizen me dice que no encuentra el directorio www.

Muchas gracias!

@rubentnf
Copy link
Contributor

Hola, yo he seguido estos pasos y he conseguido hacer que funcione en mi terminal.

He eliminado previamente la carpeta ios con el comando rm -Rf ios, seguidamente:

  • npm run-script build (este comando te generará la carpeta www que te avisa que no encuentra en tu caso)
  • npx cap add ios
  • npx cap open ios

Ya te debería dejar lanzar la app en tu terminal o emulador

Saludos

@enzymevc
Copy link
Author

enzymevc commented Mar 30, 2020 via email

@rubentnf
Copy link
Contributor

rubentnf commented Mar 30, 2020

¿Puedes probar a eliminar la carpeta www y hacer los pasos de nuevo?

Hola Juan, he seguido estos pasos y me han funcionado, pruébalos y me comentas:

  • rm -Rf node_modules www package-lock.json
  • npx npm-force-resolutions
  • npm install
  • ionic build
  • npx cap add ios
  • npx cap open ios

Aquí deberías poder ya lanzar el proyecto con Xcode

@enzymevc
Copy link
Author

enzymevc commented Mar 30, 2020 via email

@rubentnf
Copy link
Contributor

rubentnf commented Mar 30, 2020

Probe eso y el mismo error

Más o menos en este enlace de Stackoverflow comentan la solución que te adjunté: https://stackoverflow.com/questions/60787334/ionic-android-build-fails-with-could-not-find-plugin-proposal-numeric-separator

@danycode
Copy link

danycode commented Apr 9, 2020

Hi my name is Daniel I am from Cerrito Valle del Cauca Colombia and today was confirm the first Covi + positive and in the other hand we have a really bad hospital facilities, so I would like to know if you may help us to set up this app for our town so the scenario in not worst
Regards,

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

3 participants