Unable to install phonegap plugin push

Hi Experts,

Although this question is related to plugin but since plugin is already archived so can not create issue on github for phonegap plugin push.

When Installing this plugin on ios I am getting following error.

Installing “phonegap-plugin-push” for ios
Error during processing of action! Attempting to revert…
Failed to install ‘phonegap-plugin-push’: Error [ERR_UNHANDLED_ERROR]: Uh oh!
Unhandled error. (‘“framework” tag with type “podspec” is no longer supported. Please use the “podspec” tag.’)
at CordovaEventEmitter.emit (node:events:508:17)
at CordovaEventEmitter.emit (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/events.js:69:22)
at install (/Users/vgahlaut/ionic7/SmarteefiApp7/node_modules/cordova-ios/lib/plugman/pluginHandlers.js:100:32)
at ActionStack.process (/Users/vgahlaut/ionic7/SmarteefiApp7/node_modules/cordova-common/src/ActionStack.js:55:25)
at PluginManager.doOperation (/Users/vgahlaut/ionic7/SmarteefiApp7/node_modules/cordova-common/src/PluginManager.js:111:24)
at PluginManager.addPlugin (/Users/vgahlaut/ionic7/SmarteefiApp7/node_modules/cordova-common/src/PluginManager.js:141:21)
at Api.addPlugin (/Users/vgahlaut/ionic7/SmarteefiApp7/node_modules/cordova-ios/lib/Api.js:257:14)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:561:10)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:344:28
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError [ERR_INVALID_ARG_TYPE]: The “code” argument must be of type number. Received type string (‘ERR_UNHANDLED_ERROR’)
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at /usr/local/lib/node_modules/cordova/bin/cordova:32:22
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ERROR] An error occurred while running subprocess cordova.

    cordova platform add ios exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more
    information.

Ionic Framework info

Ionic:

Ionic CLI : 7.1.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.4.1
@angular-devkit/build-angular : 16.2.3
@angular-devkit/schematics : 16.2.3
@angular/cli : 16.2.3
@ionic/angular-toolkit : 9.0.0

Cordova:

Cordova CLI : 12.0.0 (cordova-lib@12.0.1)
Cordova Platforms : ios 7.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 18 other plugins)

Utility:

cordova-res : 0.15.4
native-run : not installed globally

System:

ios-sim : 8.0.2
NodeJS : v20.17.0 (/usr/local/bin/node)
npm : 10.8.2
OS : macOS Unknown
Xcode : Xcode 15.4 Build version 15F31d

Can someone please guide how to resolve it?

The solution would be to not use that plugin. If it is archived, it means it is no longer recommended to use and is not maintained :sweat_smile: :upside_down_face:

The official replacement is @havesource/cordova-plugin-push
That problem is already fixed in that plugin.

1 Like