使用phonegap插件,cordova 命令安装了dialogs,vibration插件后,允许cordova build 命令后报错,在index.js里没法使用navigator.notification.alert api。报错如下:
Coding\ management/sdca_ios/platforms/ios/sdca/Plugins/org.apache.cordova.dialogs/CDVNotification.m -o /Users/Admin/projects/sdca_ios/3.Work\ product/3.3\ Coding\ management/sdca_ios/platforms/ios/build/sdca.build/Debug-iphonesimulator/sdca.build/Objects-normal/i386/CDVNotification.o
clang: error: no such file or directory: '/Users/Admin/projects/sdca_ios/3.Work product/3.3 Coding management/sdca_ios/platforms/ios/sdca/Plugins/org.apache.cordova.dialogs/CDVNotification.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
** BUILD FAILED **
The following build commands failed:
CompileC build/sdca.build/Debug-iphonesimulator/sdca.build/Objects-normal/i386/CDVNotification.o sdca/Plugins/org.apache.cordova.dialogs/CDVNotification.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error: /Users/Admin/projects/sdca_ios/3.Work product/3.3 Coding management/sdca_ios/platforms/ios/cordova/build: Command failed with exit code 65
You may not have the required environment or OS to build this project