Appflow and coco pods on Windows

Hi All

I have recently upgrade to capacitor from cordova .

I will be using Appflow as welll.

Prior to commit to Appflow , i believe in need to do a ionic capacitor sync. I am getting the following output with cocopods installing error.

Please advice what must i do? I am using Windows PC

G:\AVR_Project\Ionic Projects\app>ionic capacitor sync
> capacitor.cmd sync
√ Copying web assets from www to android\app\src\main\assets\public in 35.00s
√ Copying native bridge in 67.85ms
√ Copying capacitor.config.json in 2.02ms
/ copy  Found 7 Cordova plugins for android
    cordova-plugin-app-version (0.1.9)
    cordova-plugin-device (2.0.3)
    cordova-plugin-nativegeocoder (3.2.2)
    cordova-plugin-statusbar (2.4.3)
    cordova-plugin-whitelist (1.3.4)
    phonegap-plugin-barcodescanner (8.0.1)
    phonegap-plugin-multidex (1.0.0)
√ copy in 41.30s
√ Updating Android plugins in 35.71ms
  Found 0 Capacitor plugins for android:
  Found 7 Cordova plugins for android
    cordova-plugin-app-version (0.1.9)
    cordova-plugin-device (2.0.3)
    cordova-plugin-nativegeocoder (3.2.2)
    cordova-plugin-statusbar (2.4.3)
    cordova-plugin-whitelist (1.3.4)
    phonegap-plugin-barcodescanner (8.0.1)
    phonegap-plugin-multidex (1.0.0)
\ update android  Found 4 incompatible Cordova plugins for android, skipped install
    cordova-plugin-add-swift-support (2.0.2)
    cordova-plugin-ionic-keyboard (2.2.0)
    cordova-plugin-ionic-webview (4.2.1)
    cordova-plugin-splashscreen (5.0.3)
√ update android in 1.92s
√ Copying web assets from www to ios\App\public in 17.36s
√ Copying native bridge in 93.47ms
√ Copying capacitor.config.json in 32.36ms
\ copy  Found 4 Cordova plugins for ios
    cordova-plugin-app-version (0.1.9)
    cordova-plugin-device (2.0.3)
    cordova-plugin-nativegeocoder (3.2.2)
    phonegap-plugin-barcodescanner (8.0.1)
√ copy in 17.61s
√ Updating iOS plugins in 41.70ms
  Found 0 Capacitor plugins for ios:
  Found 4 Cordova plugins for ios
    cordova-plugin-app-version (0.1.9)
    cordova-plugin-device (2.0.3)
    cordova-plugin-nativegeocoder (3.2.2)
    phonegap-plugin-barcodescanner (8.0.1)
× 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.

√ copy in 418.71μp
√ update web in 12.27μp
Sync finished in 62.757s

You can’t build iOS apps on Windows - they require a Mac. So, it’s failing to find the pod command.

Capacitor should have a better error message, but that’s what’s happening.

I believe a way around this would be to add the sync command to your package.json and build the app in Appflow:

"scripts": {
  "build": "ng build && npx cap sync"
}

Beyond that, consider reaching out to support@ionic.io for Appflow questions.

Thanks I will give that a go.

So prior to doing a commit to appflow. do i still do a sync on my PC?

Do i still do a sync, as i have just tried it and i am getting the same error message.

Does anything we add on the POD file get uploaded and used in Appflow?