科尔多瓦生成错误:节点值未定义

Cordova Build error: nodeValue undefined

本文关键字:节点 未定义 错误      更新时间:2023-09-26

几天没有接触我的应用程序后,今天当我尝试构建它时,我遇到了以下错误:

Error thrown while running shell command: "cordova build ios" 
Error: Command failed: /bin/sh -c cordova build ios 
Error: Cannot read property 'nodeValue' of undefined

如果我删除ios平台并再次添加它,它将起作用,但这不是最好的解决方案......我想了解这个问题。

您是否知道可能导致此错误的原因以及修复它的最佳解决方案是什么?

谢谢。

我刚刚得到了完全相同的错误。对我来说,原因是在我的MyApp-info.plist中,我添加了一个空的新行,基本上有一个空白的键值对,如下所示:

<key></key>
<string></string>

一旦我删除了它,错误就消失了,科尔多瓦能够再次构建。

希望对您有所帮助!