简体   繁体   English

为什么“ cordova build ios”不更新Xcode项目?

[英]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.

相关问题 Cordova 构建不更新项目 - Cordova build does not update project 使用Cordova的iOS项目的Xcode 7.1和iOS 9.1的xcodebuild构建失败 - xcodebuild build failed with Xcode 7.1 and iOS 9.1 for iOS project with Cordova 为iOS构建Cordova项目 - Build Cordova project for iOS Cordova CLI“cordova build android”错误“似乎不是xcode项目,没有xcode项目文件......”? - Cordova CLI "cordova build android" error "Does not appear to be an xcode project, no xcode project file in..."? 如何在 xcode 中构建 cordova 项目? - How to build a cordova project in xcode? 为什么我的xcode项目建立在模拟器上而不是xcode项目中的设备? - Why does my xcode project build on simulator but not device in xcode project? 无法使用 CLI 构建 Cordova iOS 项目,但可以构建/运行 Xcode 项目 - Can't build Cordova iOS project using CLI but can build/run the Xcode project 为什么我的“包含 SwiftyDropbox”会导致我的 iOS Xcode Swift 项目出现构建错误? - Why does my "include SwiftyDropbox" cause a build error for my iOS Xcode Swift project? 为什么这个 iOS 项目不使用 XCode 11 构建? - Why doesn't this iOS project build using XCode 11? Cordova iOS项目:xCode 9缺少一些权利 - Cordova iOS project: xCode 9 missing some entitlements
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM