I am getting some strange issue while adding plugin in iOS using CLI. Executed below commands in Terminal,
- cordova create Documents/Work/hello com.example.hello hello world
- cordova platform add ios
- cordova plugin add org.apache.cordova.device
- cordova build
But the build is failing & showing the below message,
error: no such file or directory: '/Users/gtmac/Documents/Work/hello/platforms/ios/helloworld/Plugins/org.apache.cordova.device/CDVDevice.m' clang: error: no input files
** BUILD FAILED **
When I add any plugin, .m & .h files are not getting copied to the Platforms/Plugins folder. But the files are present in the Plugins folder in the root directory.