Monaca Onsen UI Discord Chat Github Repo

IOS build faild 'onesignal-cordova-plugin': Error: pod: Command failed with exit code 1



  • hi im using monaca cloud for Ios and Android app.
    cordova 10
    ios 6.1.1 / 6.0.0
    xcode 12

    i cant compile IOS app with onesignal-cordova-plugin
    android is working fine.

    i get eror Failed to install ‘onesignal-cordova-plugin’: Error: pod: Command failed with exit code 1 Error output:
    =====LOG=====
    iOS project created with cordova-ios@6.1.0
    [01:00:20] Discovered plugin “monaca-plugin-monaca-core”. Adding it to the project
    [01:00:20] Installing “monaca-plugin-monaca-core” for ios
    [01:00:20] Adding monaca-plugin-monaca-core to package.json
    [01:00:20] Discovered plugin “cordova-plugin-whitelist”. Adding it to the project
    [01:00:35] Installing “cordova-plugin-whitelist” for ios
    [01:00:35] Adding cordova-plugin-whitelist to package.json
    [01:00:35] Discovered plugin “cordova-plugin-splashscreen”. Adding it to the project
    [01:00:35] Installing “cordova-plugin-splashscreen” for ios
    [01:00:35] Adding cordova-plugin-splashscreen to package.json
    [01:00:35] Discovered plugin “cordova-custom-config”. Adding it to the project
    [01:00:35] Installing “cordova-custom-config” for ios
    [01:00:35] Adding cordova-custom-config to package.json
    [01:00:35] Discovered plugin “cordova-plugin-device”. Adding it to the project
    [01:00:35] Installing “cordova-plugin-device” for ios
    [01:00:35] Adding cordova-plugin-device to package.json
    [01:00:35] Discovered plugin “cordova-plugin-statusbar”. Adding it to the project
    [01:00:35] Installing “cordova-plugin-statusbar” for ios
    [01:00:35] Adding cordova-plugin-statusbar to package.json
    [01:00:35] Discovered plugin “cordova-plugin-battery-status”. Adding it to the project
    [01:00:35] Installing “cordova-plugin-battery-status” for ios
    [01:00:35] Adding cordova-plugin-battery-status to package.json
    [01:00:35] Discovered plugin “cordova-plugin-inappbrowser”. Adding it to the project
    [01:00:35] Installing “cordova-plugin-inappbrowser” for ios
    [01:00:35] Adding cordova-plugin-inappbrowser to package.json
    [01:00:35] Discovered plugin “cordova-plugin-contacts”. Adding it to the project
    [01:01:09] Installing “cordova-plugin-contacts” for ios
    [01:01:09] Adding cordova-plugin-contacts to package.json
    [01:01:09] Discovered plugin “cordova-plugin-app-version”. Adding it to the project
    [01:01:23] Installing “cordova-plugin-app-version” for ios
    [01:01:23] Adding cordova-plugin-app-version to package.json
    [01:01:23] Discovered plugin “cordova-plugin-ionic-keyboard”. Adding it to the project
    [01:01:38] Installing “cordova-plugin-ionic-keyboard” for ios
    [01:01:38] Adding cordova-plugin-ionic-keyboard to package.json
    [01:01:38] Discovered plugin “cordova-plugin-android-permissions”. Adding it to the project
    [01:01:51] Installing “cordova-plugin-android-permissions” for ios
    [01:01:51] Adding cordova-plugin-android-permissions to package.json
    [01:01:51] Discovered plugin “cordova-plugin-add-swift-support”. Adding it to the project
    [01:02:00] Installing “cordova-plugin-add-swift-support” for ios
    [01:02:00] Adding cordova-plugin-add-swift-support to package.json
    [01:02:00] Discovered plugin “cordova-plugin-contacts-x”. Adding it to the project
    [01:02:10] Installing “cordova-plugin-contacts-x” for ios
    [01:02:10] Plugin dependency “cordova-plugin-add-swift-support@2.0.2” already fetched, using that version.
    [01:02:10] Dependent plugin “cordova-plugin-add-swift-support” already installed on ios.
    [01:02:10] Adding cordova-plugin-contacts-x to package.json
    [01:02:10] Discovered plugin “cordova-plugin-cocoapod-support”. Adding it to the project
    [01:02:18] Installing “cordova-plugin-cocoapod-support” for ios
    [01:02:18] Adding cordova-plugin-cocoapod-support to package.json
    [01:02:18] Discovered plugin “onesignal-cordova-plugin”. Adding it to the project
    [01:02:27] Installing “onesignal-cordova-plugin” for ios
    [01:02:36] “framework” tag with type “podspec” is deprecated and will be removed. Please use the “podspec” tag.
    [01:02:39] Running command: pod install --verbose
    [01:02:39] WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    [01:02:39] Consider adding the following to ~/.profile:
    [01:02:39] export LANG=en_US.UTF-8
    [01:02:39] 
    [01:02:42] Failed to install ‘onesignal-cordova-plugin’: Error: pod: Command failed with exit code 1 Error output:
    [01:02:42] WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    [01:02:42] Consider adding the following to ~/.profile:
    [01:02:42] export LANG=en_US.UTF-8
    [01:02:42] 
    [01:02:42] at ChildProcess.whenDone (/private/tmp/download/node_modules/cordova-common/src/superspawn.js:136:25)
    [01:02:42] at ChildProcess.emit (events.js:315:20)
    [01:02:42] at maybeClose (internal/child_process.js:1021:16)
    [01:02:42] at Socket.<anonymous> (internal/child_process.js:443:11)
    [01:02:42] at Socket.emit (events.js:315:20)
    [01:02:42] at Pipe.<anonymous> (net.js:674:12)
    [01:02:42] pod: Command failed with exit code 1 Error output:
    [01:02:42] WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    [01:02:42] Consider adding the following to ~/.profile:
    [01:02:42] export LANG=en_US.UTF-8
    [01:02:42] 

    thanks


  • administrators

    What version of the plugin are you using? I was able to get it to install properly with the latest release version.



  • lastest version
    i switch back to Xcode 11.3 and its fixed the isuee