Ionic pro packaging service has started to give errors regarding onesignal-cordova plugin for ios packages again. Our previous package was passed with no errors and we didn’t make any changes on the plugins.
Anybody facing this issue?
Fetching plugin “onesignal-cordova-plugin@^2.2.4” via npm
Installing “onesignal-cordova-plugin” for ios
Failed to install ‘onesignal-cordova-plugin’: Error: pod: Command failed with exit code 31
at ChildProcess.whenDone (/Users/ionic/builds/project-1/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
Failed to restore plugin “onesignal-cordova-plugin” from config.xml. You might need to try adding it again. Error: Error: pod: Command failed with exit code 31
–save flag or autosave detected
Here’s the answer that I’ve received from Ionic official supoort;
Thanks for reaching out to the Ionic Pro support team.
Sorry you’re having trouble. OneSignal recommends sticking to version 2.1.0 when using Ionic Pro. As you can see there’s a problem with with cocoapods. Our team is looking into the issue but this appears to be a fundamental problem with cordova-ios.
I have the same problem right now.
Downgrading one-signal-cordova isn’t an option anymore. Building with newer android platform versions (7.0+) fails with version 2.1.0.
#!/bin/bash
pod install --project-directory='./platforms/ios/'
but the run_pods.sh and update_pods.sh are not in my project directory.
and this is what a i got:
Sending stats
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.
[!] The Podfile does not contain any dependencies.
Updating ios build to use workspace.
Adding schemes
Error: Cannot find module '../../node_modules/xcode'