Appflow + capacitor : iOS Package fails


Is appflow compatible with capacitor.
I have tried the following steps :

  • ionic start laCap tabs --capacitor
  • Commit on github
  • npm install --save @capacitor/core @capacitor/cli
  • npx cap init labCap com.arasolutions.labcap
  • Commit on github
  • ionic build
  • npx cap add ios
  • add ios certificate in appflow
  • build IOS

The logs ends with :

capacitor init labCap io.ionic.starter --npm-client npm
[12:52:53]: ▸ ? capacitor.config.json already contains cordova preferences. Overwrite with val

‘io.ionic.starter’ is weird because this is not my bundle ID

app ID : fc40254a / build ID : 6807586

Any idea ?

Did you confirm the bundle ID in the capacitor.config.json is correct?
Taking a look at the logs

Yes I confirm it :

  "appId": "com.arasolutions.labcap",
  "appName": "labCap",
  "bundledWebRuntime": false,
  "npmClient": "npm",
  "webDir": "www",

Mmm alright. Our team found the issue and should be in contact with you on the paid customer support side of things

Thanks Mike & Brian (from Ionic support).

We have to manually change ‘cordova’ to ‘capacitor’ in ionic.config.json

  "name": "labCap",
  "integrations": {
    "cordova": {}
  "type": "angular",
  "id": "fc40254a"

The issue has been confirmed and will be resolved in the next release.

Thanks again for your help.