[Solved] iOS Release Build fails when using OneSignal



  • Hello,

    everytime I try to build my iOS App for release, the build fails with the following error.

    == LOG START ==
    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/5a1e821ee788854a5f8b456c/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 Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

    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
    ]
    == LOG END==

    I’m using the OneSignal plugin onesignal-cordova-plugin for push notifications.
    Last week this project built without an error for iOS release.
    The whole time Android builds finish without any problem though.
    (I’m using the Cloud IDE)

    I’ve seen there is another post about a month ago in which in my eyes the same problem occured and had been fixed.
    https://community.onsen.io/topic/1740/urgent-error-when-build-for-release-of-an-ios-app

    Thanks in advance.



  • Okay, today the build succeeded without a problem. I guess the error is fixed.