Error when build for release of an iOS app with onesignal-cordova-plugin
-
Re: Urgent: Error when build for release of an iOS app
Now is error , when I build onesignal-cordova-plugin , it’s the same problem :
$ /data/build-server/cordova/6.5.0/bin/cordova plugin add onesignal-cordova-plugin Fetching plugin "onesignal-cordova-plugin" via npm 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/5a44db89e78885483b8b4567/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
-
Use the older version of onesignal-cordova-plugin if you have in zip format than use it,
-
@MarkChu @sultan I imported your project and successfully made the release build for iOS without any issue. I think you didn’t have the right iOS configuration for using OneSignal plugin for release build. You need to use App ID, certificate & provisioning profile configured for push notification. The usual iOS configuration is not working with OneSignal plugin.