我正在使用Ionic Framework和Cordova开发移动应用程序,我试图添加Cordova媒体插件,它不会为我构建.
我甚至尝试创建一个新的入门选项卡项目,然后添加媒体插件,如图所示.由于添加了媒体插件,项目无法编译.
npm install -g cordova ionic gulp ionic start ionicTest tabs ionic platform add ios cordova plugin add org.apache.cordova.media ionic build ios
cordova plugin rm org.apache.cordova.media ionic build ios
这是我收到的错误消息,我使用的是Cordova 4.1.2版
The following build commands Failed: CompileC build/ionicTest.build/Debug-iphonesimulator/ionicTest.build/Objects-normal/i386/CDVFile.o ionicTest/Plugins/org.apache.cordova.file/CDVFile.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/ionicTest.build/Debug-iphonesimulator/ionicTest.build/Objects-normal/i386/CDVLocalFilesystem.o ionicTest/Plugins/org.apache.cordova.file/CDVLocalFilesystem.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/ionicTest.build/Debug-iphonesimulator/ionicTest.build/Objects-normal/i386/CDVSound.o ionicTest/Plugins/org.apache.cordova.media/CDVSound.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/ionicTest.build/Debug-iphonesimulator/ionicTest.build/Objects-normal/i386/CDVAssetLibraryFilesystem.o ionicTest/Plugins/org.apache.cordova.file/CDVAssetLibraryFilesystem.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (4 failures) Error: /Users/steven/web/ionicTest/platforms/ios/cordova/build: Command Failed with exit code 65
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。