我正在尝试使用angularjs和cordova应用程序,我需要使用cordova插件,如地图和地理定位。我看过ngCordova,但没有提供地图插件。为了测试目的,我尝试添加地理定位插件,但它根本没有构建ios应用程序。
clang: error: no such file or directory: '/Users/asifalamgir/Documents/hungryHaven/hungryHavenApp/platforms/ios/hungryHaven/Plugins/org.apache.cordova.geolocation/CDVLocation.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/hungryHaven.build/Debug-iphonesimulator/hungryHaven.build/Objects-normal/i386/CDVLocation.o hungryHaven/Plugins/org.apache.cordova.geolocation/CDVLocation.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: /Users/asifalamgir/Documents/hungryHaven/hungryHavenApp/platforms/ios/cordova/build: Command failed with exit code 65
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)谢谢
发布于 2014-10-18 18:35:50
可能的原因可以是:
安装插件时出现了错误。您可以尝试重新安装它:
cordova plugin rm org.apache.cordova.geolocation
cordova plugin add org.apache.cordova.geolocation此外(不太可能,但可能是)再次尝试准备应用程序:
cordova prepare ios甚至有时候,你也可以尝试删除整个ios应用程序,然后再添加一次:
cordova platform rm ios
cordova platform add ios发布于 2014-12-26 20:19:07
我解决这个问题的方法是:
https://stackoverflow.com/questions/26432808
复制相似问题