Hi!
Sorry if this is a dumb question, I’m a newbie in Ionic deployment (I’ve been playing for some time on my dev machine with an Ionic frontend project, but never deployed it).
I wanted to start deploying my project to iOS and Android, and followed the procedure at Deploying to iOS and Android - Ionic Documentation
But… I wont go very far because the cap add
task never finishes.
After this last log, nothing happens for minutes (I waited about 15min):
> capacitor init zef io.ionic.starter --web-dir www
[?] Cordova preferences can be automatically ported to capacitor.config.json.
Keep in mind: Not all values can be automatically migrated from config.xml. There may be more work to do.
More info: https://capacitorjs.com/docs/v3/cordova/migrating-from-cordova-to-capacitor
I googled around but didn’t find anything about that particular problem or how to investigate further.
A couple more info:
I’m on mac
it’s an Ionic + Angular project
ionic build succeeds
ionic --version: 6.16.1
npm -v: 6.13.4
Could someone help me understand what’s going on?
Thanks!
It’s a bug, it has been reported
opened 08:04PM - 03 Jun 21 UTC
platform: android
platform: ios
## Bug Report
### Capacitor Version
<!--
Paste the output from the `npx cap… doctor` command into the code block below. This will provide the versions of Capacitor packages and related dependencies.
-->
```
Latest Dependencies:
@capacitor/cli: 3.0.0
@capacitor/core: 3.0.0
@capacitor/android: 3.0.0
@capacitor/ios: 3.0.0
Installed Dependencies:
@capacitor/android: not installed
@capacitor/ios: not installed
@capacitor/cli: 3.0.0
@capacitor/core: 3.0.0
```
### Platform(s)
<!--
List the platforms that this bug affects.
-->
iOS/Android
I think this is N/A, but I'm trying to migrate an iOS/Android app to Capacitor
### Current Behavior
<!--
Describe how the bug manifests. Be specific.
-->
Run `ionic integrations enable capacitor --verbose` in an Ionic Angular app.
A few @capacitor modules are installed, config json is displayed, then this text appears but does not show the y/n prompt:
```
[?] Cordova preferences can be automatically ported to capacitor.config.json.
Keep in mind: Not all values can be automatically migrated from config.xml. There may be more work to do.
More info: https://capacitorjs.com/docs/v3/cordova/migrating-from-cordova-to-capacitor
```
It hangs at this point. It does nothing if I type "y", "yes", etc.
### Expected Behavior
<!--
Describe what the behavior should be.
-->
Should see the prompt "Migrate Cordova preferences from config.xml?" and accept a y/n input
### Code Reproduction
<!--
To isolate the cause of the problem, we ask you to provide a minimal sample application that demonstrates the issue.
For full instructions, see: https://github.com/ionic-team/capacitor/blob/HEAD/CONTRIBUTING.md#creating-a-code-reproduction
-->
### Other Technical Details
<!--
Please provide the following information with your request and any other relevant technical details (versions of IDEs, local environment info, plugin information or links, etc).
-->
`npm --version` output: 6.14.13
`node --version` output: v14.17.0
`pod --version` output (iOS issues only):
### Additional Context
<!--
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
-->
I'm following the [migration guide here](https://capacitorjs.com/docs/cordova/migrating-from-cordova-to-capacitor) which [took me to here](https://capacitorjs.com/docs/getting-started/with-ionic#existing-ionic-project) for the enable capacitor command.
Should be fixed on next @capacitor /cli release
As workaround you can run npx cap init
and add capacitor inside the integrations object in ionic.config.json
"integrations": {
"capacitor": {}
},
1 Like