I am very new to AppFlow. I am trying to build my app and it is failing for both IOS and Android for essentially the same thing. The build fails on this line:
capacitor sync IOS
(or Android)
My app is a legacy app that doesn’t use Ionic. It uses jQuery Mobile. It’s a very simple app with no plugins. I am trying to migrate from PhoneGap. I am trying to use Capacitor.
I have tried resetting the project per this page.
I have also tried deleting both the Android and IOS folders and recreating per this page.
The relevant part of the build fail seems to be below. It is isn’t much to Google.
Has anyone seen this before? I suspect this is a configuration problem since IOS and Android both fail, but I not sure what to do.
[17:05:01]: Shell command exited with exit status 1 instead of 0.
> capacitor sync android
Error
at new SubprocessError (/usr/local/nvm/versions/node/v10.19.0/lib/node_modules/@ionic/cli/node_modules/@ionic/utils-subprocess/dist/index.js:40:23)
at ChildProcess.p.on (/usr/local/nvm/versions/node/v10.19.0/lib/node_modules/@ionic/cli/node_modules/@ionic/utils-subprocess/dist/index.js:113:27)
at ChildProcess.emit (events.js:198:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
+------+-----------------------+-------------+
| fastlane summary |
+------+-----------------------+-------------+
| Step | Action | Time (in s) |
+------+-----------------------+-------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 0 |
| 3 | add_git_credentials | 0 |
| 4 | detect_native_type | 0 |
| 5 | get_web_dir | 0 |
| 6 | modify_cap_web_config | 0 |
| 7 | download_credential | 1 |
| 8 | build_pro_app | 3 |
| 💥 | cap_sync | 1 |
+------+-----------------------+-------------+
[17:05:01]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
/usr/local/bundle/gems/fastlane-2.143.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': [!] Shell command exited with exit status 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
> capacitor sync android
Error
at new SubprocessError (/usr/local/nvm/versions/node/v10.19.0/lib/node_modules/@ionic/cli/node_modules/@ionic/utils-subprocess/dist/index.js:40:23)
at ChildProcess.p.on (/usr/local/nvm/versions/node/v10.19.0/lib/node_modules/@ionic/cli/node_modules/@ionic/utils-subprocess/dist/index.js:113:27)
at ChildProcess.emit (events.js:198:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)