[英]Why “cordova build ios” does not update Xcode project?
I have an existing Cordova project (with the iOS platform) containing a plugin I'm interested in. 我有一个现有的Cordova项目(带有iOS平台),其中包含我感兴趣的插件。
I edited the list of the files in plugins/ios/src and updated the plugin.xml section for ios accordingly (I actually removed all files and replaced with mines). 我编辑了plugins / ios / src中的文件列表,并相应地为ios更新了plugin.xml部分(我实际上删除了所有文件并替换为我的文件)。
I ran "cordova build ios", which generated errors as it tried to compile former files I removed. 我运行了“ cordova build ios”,它在尝试编译我删除的先前文件时生成了错误。
Checking the Xcode workspace/project showed the file remained the the same as before. 检查Xcode工作区/项目显示文件与以前相同。
I tried to run Cordova clean ios, successfully, but that changed nothing to the situation. 我尝试成功运行Cordova clean ios,但这并没有改变情况。
What I am missing? 我缺少什么?
You should run the command 您应该运行命令
cordova plugin add|remove <plugin_name>
For more information, you can read the docs https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/ 有关更多信息,您可以阅读文档https://cordova.apache.org/docs/en/latest/platform_plugin_versioning_ref/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.