What platform are you building for?
iOS
What framework are you building with?
Cordova
What is your build ID?
196ab9b5-4489-4611-89e2-f2f67004993e
What is your error message?
[!] CocoaPods could not find compatible versions for pod “FirebaseInAppMessaging”:
In Podfile:
FirebaseInAppMessaging (= 11.8.0-beta)
Specs satisfying the FirebaseInAppMessaging (= 11.8.0-beta) dependency were found, but they required a higher minimum deployment target.
Please describe the issue:
The plugin cordova-plugin-firebasex is working on Android but on IOS i’m unable to build.
I have tried to change the deployment-target to 13,14,15 but I always get the same error.
Can you please include your config.xml file? A deployment-target of 13 should be fine.
<platform name="ios">
<preference name="deployment-target" value="13.0" />
<preference name="ScrollEnabled" value="true" />
<preference name="DisallowOverscroll" value="true" />
<preference name="StatusBarStyle" value="lightcontent" />
<preference name="AllowInlineMediaPlayback" value="true"/>
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<icon src="resources/icon/ios/icon-1024.png" width="1024" height="1024"/>
<icon src="resources/icon/ios/icon-small.png" width="29" height="29"/>
<icon src="resources/icon/ios/icon-small@2x.png" width="58" height="58"/>
<icon src="resources/icon/ios/icon-small@3x.png" width="87" height="87"/>
<icon src="resources/icon/ios/icon-small-40.png" width="40" height="40"/>
<icon src="resources/icon/ios/icon-small-40@2x.png" width="80" height="80"/>
<icon src="resources/icon/ios/icon-small-40@3x.png" width="120" height="120"/>
<icon src="resources/icon/ios/icon-small-50.png" width="50" height="50"/>
<icon src="resources/icon/ios/icon-small-50@2x.png" width="100" height="100"/>
<icon src="resources/icon/ios/icon.png" width="57" height="57"/>
<icon src="resources/icon/ios/icon@2x.png" width="114" height="114"/>
<icon src="resources/icon/ios/icon-60.png" width="60" height="60"/>
<icon src="resources/icon/ios/icon-60@2x.png" width="120" height="120"/>
<icon src="resources/icon/ios/icon-60@3x.png" width="180" height="180"/>
<icon src="resources/icon/ios/icon-72.png" width="72" height="72"/>
<icon src="resources/icon/ios/icon-72@2x.png" width="144" height="144"/>
<icon src="resources/icon/ios/icon-76.png" width="76" height="76"/>
<icon src="resources/icon/ios/icon-76@2x.png" width="152" height="152"/>
<icon src="resources/icon/ios/icon-167.png" width="167" height="167"/>
<icon src="resources/icon/ios/icon-83.5@2x.png" width="167" height="167"/>
<splash src="resources/screen/ios/Default@2x~universal~anyany.png" />
</platform>
<engine name="android" spec="14.0.1" />
<engine name="ios" spec="7.1.1" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.2" source="npm" />
<plugin name="cordova-plugin-disable-ios11-statusbar" source="npm" />
<plugin name="cordova-plugin-statusbar" source="npm" />
<plugin name="cordova-plugin-network-information" source="npm" />
<plugin name="cordova-plugin-splashscreen" source="npm" />
<plugin name="cordova-plugin-headercolor" source="npm" />
<plugin name="cordova-plugin-file" source="npm" />
<plugin name="cordova-plugin-ionic-webview" source="npm" />
<plugin name="cordova-plugin-inappbrowser" source="npm" />
<plugin name="cordova-plugin-firebasex" spec="^19.0.1" source="npm"/>
<preference name="phonegap-version" value="cli-9.0.0" />
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
</config-file>
For some reason voltbuilder doesn’t respect the required CocoaPods for the build.
I tried to change the ios spec to 8.0.0 and deployment-target to 16.0 and I get the same error: No compatible CocoaPods found. Even if I lower the spec of the firebasex plugin it will give me the same error.
Is there a way to use a specific pod for a build?
The version of the pod is specified by the plugin. I suspect somehow your minimum deployment target isn’t being set properly. Can you please run another build and share the build ID so I can take a look?
Build ID:
113d2585-7738-477d-ae94-120f05d27d31
For this build I used:
<preference name="deployment-target" value="13.0" />
I managed to fix it by moving cordova-plugin-firebasex as the first plugin in the config.xml file.
I looked into this further and the problem is this plugin: cordova-plugin-ionic-webview - npm
Specifically, the issue is with these lines in the plugin.xml: ionic-team/cordova-plugin-ionic-webview: Web View plugin for Cordova, specialized for Ionic apps.
There’s already an issue open for this: Upgrade deployment target · Issue #695 · ionic-team/cordova-plugin-ionic-webview
But honestly you should just not use that plugin unless it’s doing something necessary. I deeply question the wisdom of a plugin forcing the deployment-target.