Build Fails after adding ngcordova-badge-plugin


After adding Badge plugin from i get following error


The following build commands failed:
Ld build/emulator/ normal i386
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/ankurpatel/Desktop/ionic_apps/ionCordova/platforms/ios/cordova/build-debug.xcconfig,-project,ionCordova.xcodeproj,ARCHS=i386,-target,ionCordova,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/ankurpatel/Desktop/ionic_apps/ionCordova/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/ankurpatel/Desktop/ionic_apps/ionCordova/platforms/ios/build/sharedpch
Error: /Users/ankurpatel/Desktop/ionic_apps/ionCordova/platforms/ios/cordova/run: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

Any reason why this happens ?
after successful removal it builds again without errors. Also i have tried to remove and add platform but does not build.


hi @ankurextreme,

did you solve this problem, I’m facing a similar issue building for iOS?


yes … its sort of workaround … create a new project, add the plugin, then compile. now it will compile without errors. once this is done, slowly copy the code one by one to new project then add each plugin and compile. this will work, at least it did for me. First add badge plugin and then the rest. Lemme know if it works.


@ankurextreme, does badge run in ionic android? how to implement it? thanks