AppFlow Build Failing - Config Error?

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)

Update:
I have contacted support based on the sticky in this forum. They won’t help without a support plan.

I also changed the permissions on gradlew based on this post. This didn’t help.

Can anyone at least explain what the error means or if there is a way to turn on verbose?

Per the documentation here, there is no verbose mode.

Can you build locally with the ionic build command, and ionic build --prod?

Since it’s not an Ionic project, no. It’s a custom project.

If I try:

ionic capacitor sync android --no-build

locally (I’m using Windows 10), the command completes, but there are no changes to the project according to git.

Running the same command for IOS results in an error:

>ionic capacitor sync ios --no-build
> capacitor.cmd sync ios
√ Copying web assets from www to ios\App\public in 251.63ms
√ Copying native bridge in 8.73ms
√ Copying capacitor.config.json in 1.61ms
√ copy in 276.23ms
√ Updating iOS plugins in 1.64ms
  Found 0 Capacitor plugins for ios:
× Updating iOS native dependencies with "pod install" (may take several minutes):
× update ios:
[error] Error running update: 'pod' is not recognized as an internal or external command,
operable program or batch file.

Sync finished in 0.398s

Thank you for you response.