Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
iOS Release Build Failed to install 'onesignal-cordova-plugin
-
- Cordova platform add -
$ /data/build-server/cordova/6.5.0/bin/cordova platform add /data/build-server/cordova/platforms/ios/4.4.0
Adding ios project… - Cordova plugin add -
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.Monaca
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-whitelist@1.3.1
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device-motion@1.2.5
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device-orientation@1.0.7
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-geolocation@2.4.3
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-network-information@1.3.3
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-splashscreen@4.0.3
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device@1.1.6
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-custom-config@2.0.3
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add https://github.com/danwilson/google-analytics-plugin
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-inappbrowser@1.7.1
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add https://github.com/OneSignal/OneSignal-Cordova-SDK
Fetching plugin “https://github.com/OneSignal/OneSignal-Cordova-SDK” via git clone
Repository “https://github.com/OneSignal/OneSignal-Cordova-SDK” checked out to git ref “master”.
Installing “onesignal-cordova-plugin” for ios
Failed to install ‘onesignal-cordova-plugin’:Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/private/tmp/monaca/5a443b9de7888507048b456b/project/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:486:12)
Remove DerivedData files…
Change Xcode Version to 8- postBuild -
Remove working directories…
Build Error: Error: Sandbox Exec Error: [ Error: pod: Command failed with exit code 1
]
- Cordova platform add -
-
@sultan I think you didn’t have the right iOS configuration for the release build. Please make sure you are using the right App ID, certificate & provisioning profile configured for push notification. The normal iOS configuration can’t be used for OneSignal plugin.
-
@khemry Could you please investigate more into this issue? I’ve got the same error again.
Compiling the project for iOS with everything except the onesignal-cordova-plugin works just fine no matter if it’s a release or debug build, so I guess the certificate and provisioning files aren’t the problem.https://community.onsen.io/topic/1740/urgent-error-when-build-for-release-of-an-ios-app/2
https://community.onsen.io/topic/1831/solved-ios-release-build-fails-when-using-onesignal
-
@sultan said: Based on your build log, I found your project. I imported it and successfully built for iOS (using my own iOS configuration). Did you use the App ID, certificate & provisioning profile for push notification?
-
@khemry Thanks for the tips but I have the same issue and can’t really find correct iOS configuration to build the iOS app, I can build with only 2.2.4 version of OneSignal plugin but not higher version.
Could you please share the tip how to get the correct configuration of iOS setting.
-
@Glenn-Hung Please try to build again. There was a Cocoa Pods update issue with OneSignal plugin. It’s been fixed now. So your build should succeed.