Software Archive
Read-only legacy content
17061 Discussions

phonegap-plugin-push fails to build for iOS - how to set cordova-ios version?

David_K_6
Beginner
444 Views

I've had various problems getting phonegap-plugin-push to build.

If I add it from the "Featured Plugins" section, I get a panel saying "Missing required variables". Pressing OK merely leads to a pause, a "Fetching, please be patient" and a return to the "Missing required variables" panel. By the way, the relevant variable (SENDER_ID) is not listed in the panel.

If I add it from the Cordova plugin registry, the relevant variable *is* listed and I can fill it in and install the plugin at its default version (1.6.2).

However, it fails to build for IOS, with the simple message: Error: Plugin PushPlugin failed to install/

If I back the plugin off to version 1.4.3, it builds OK.

The plugin author says that the current version of the plugin requires cordova-ios 4.x or later, whereas my build log says that I am using cordova-ios 3.8.0.

Is it possible to specify the version of cordova-ios, and if so, how do I do this? And can I set it to 4.x?

Thanks

0 Kudos
1 Solution
Rakshith_K_Intel
Employee
444 Views

In build setting for iOS, change the Cordova CLI version to 5.4.1, this will use Cordova-iOS v4.0.1 to build.

This CLI 5.4.1 option is available in XDK 3088

View solution in original post

0 Kudos
2 Replies
Rakshith_K_Intel
Employee
445 Views

In build setting for iOS, change the Cordova CLI version to 5.4.1, this will use Cordova-iOS v4.0.1 to build.

This CLI 5.4.1 option is available in XDK 3088

0 Kudos
David_K_6
Beginner
444 Views

Hi Rakshith

I've tried this and it does work, thank you, although at a cost: going to 5.4.1 means that iOS 7 and below are no longer supported.

We've got a small number of users still on iOS 7, but I guess I'll have to live with it.

Thanks for your help

0 Kudos
Reply