AppFlow | IOS | error: could not build Objective-C module 'CordovaPlugins'

Hi everyone, when I build from appFlow for iOS I get the following error:
error: could not build Objective-C module ‘CordovaPlugins’

I found the following solution on apple support:
https://developer.apple.com/forums/thread/128535

But I don’t have a mac computer and I can’t do the apple recommended change.

Could you help me?

If Appflow fails to build CordovaPlugins is probably because of a problem on some of the Cordova plugins you are using that prevents the module from building.
Would be helpful if you could provide your cordova plugin list (with versions)

Hi, I share the plugin list:

“cordova-android-firebase-gradle-release”: “^4.0.0”,
“cordova-android-play-services-gradle-release”: “^4.0.0”,
“cordova-annotated-plugin-android”: “^1.0.4”,
“cordova-pdf-generator”: “^2.1.1”,
“cordova-play-services-version-adapter”: “^1.1.0”,
“cordova-plugin-android-permissions”: “^1.1.2”,
“cordova-plugin-app-version”: “^0.1.12”,
“cordova-plugin-badge”: “^0.8.8”,
“cordova-plugin-camera”: “^6.0.0”,
“cordova-plugin-chooser”: “^1.3.2”,
“cordova-plugin-device”: “^2.0.3”,
“cordova-plugin-file”: “^6.0.2”,
“cordova-plugin-file-opener2”: “^3.0.5”,
“cordova-plugin-file-transfer”: “^1.7.1”,
“cordova-plugin-filechooser”: “^1.2.0”,
“cordova-plugin-filepath”: “^1.6.0”,
“cordova-plugin-filepicker”: “^1.1.6”,
“cordova-plugin-firebase-analytics”: “^6.1.0”,
“cordova-plugin-firebase-messaging”: “^6.0.0”,
“cordova-plugin-inappbrowser”: “^5.0.0”,
“cordova-plugin-local-notification”: “^0.9.0-beta.2”,
“cordova-plugin-network-information”: “^3.0.0”,
“cordova-plugin-splashscreen”: “^6.0.0”,
“cordova-plugin-statusbar”: “^2.4.3”,
“cordova-plugin-x-socialsharing”: “^6.0.3”,
“cordova-support-android-plugin”: “^1.0.2”,
“es6-promise-plugin”: “^4.2.2”,
“ionic-plugin-deeplinks”: “^1.0.24”,

In case it can help, it added the full error:

** ARCHIVE FAILED **

The following build commands failed:
CompileSwift normal arm64 /Users/ionic/builds/SancorSalud/SancorSaludAppMobileInstitucional/ios/capacitor-cordova-ios-plugins/sources/CordovaPluginChooser/Chooser.swift (in target ‘CordovaPlugins’ from project ‘Pods’)
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target ‘CordovaPlugins’ from project ‘Pods’)
(2 failures)
[16:10:19]: Exit status: 65

±--------------±------------------------+
| Build environment |
±--------------±------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.194.0 |
| export_method | app-store |
| sdk | iPhoneOS15.0.sdk |
±--------------±------------------------+

[16:10:19]: ▸ ^
[16:10:19]: ▸ /Users/ionic/builds/SancorSalud/SancorSaludAppMobileInstitucional/ios/capacitor-cordova-ios-plugins/sources/CordovaPluginFirebaseMessaging/AppDelegate+FirebaseMessagingPlugin.h:4:9: error: include of non-modular header inside framework module ‘CordovaPlugins.AppDelegate_FirebaseMessagingPlugin’: ‘/Users/ionic/builds/SancorSalud/SancorSaludAppMobileInstitucional/ios/App/Pods/Headers/Public/Firebase/Firebase.h’
[16:10:19]: ▸ #import <Firebase/Firebase.h>
[16:10:19]: ▸ ^
[16:10:19]: ▸ :0: error: could not build Objective-C module ‘CordovaPlugins’

1 Like

If I have to guess, I think the plugin causing it is cordova-plugin-firebase-analytics and/or cordova-plugin-firebase-messaging

What could we do in these cases?