[英]Trouble adding cordova plugins to phonegap project
I have a project using phonegap 3.1 which was working fine. 我有一个使用phonegap 3.1的项目,效果很好。
I added the cordova file plugin like so: 我像这样添加了cordova文件插件:
cordova plugin add org.apache.cordova.file
then 然后
phonegap build ios
which runs fine. 运行正常。
I open the project in xcode and it fails to compile with the error: 我在xcode中打开项目,但无法编译并显示以下错误:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
It's quite meaningless so I poke around further and fine that CDVFile.h and CDVFile.m are highlighted in Red inside my plugins directory in my xcode project and clicking on them won't show their code. 这是毫无意义的,所以我进一步仔细研究一下,在我的xcode项目的插件目录内的CDVFile.h和CDVFile.m中用红色突出显示了,单击它们将不会显示其代码。 My other plugins are working fine.
我的其他插件运行正常。
I tried product -> clean but it didn't help. 我尝试过产品->清洁,但没有帮助。
Anybody know what else I can try? 有人知道我还能尝试什么吗?
我相信,如果您想在phonegap local plugin add org.apache.cordova.file
需要运行phonegap local plugin add org.apache.cordova.file
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.