Ionic native braintree plugin error during building iOS


#1

I get the following error when I try to build iOS after I have installed braintree plugin and module.

Failed to install 'cordova-plugin-braintree': Error: Cannot find module 'xcode'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/MacBookPro/desktop/projects/LaPWA/plugins/cordova-plugin-braintree/scripts/add_embedded_ios_frameworks.js:3:15)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)