简体   繁体   English

Cordova构建错误:nodeValue未定义

[英]Cordova Build error: nodeValue undefined

After a couple of days without touching my app, today when I tried to build it I got the following error: 几天没有触摸我的应用程序,今天当我尝试构建它时,我收到以下错误:

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

If I remove the ios platform and add it again, it will work, but that's not the best solution... I'd like to understand the issue. 如果我删除ios平台并再次添加它,它将起作用,但这不是最好的解决方案......我想了解这个问题。

Do you have any idea what might have caused this error and what would be the best solution to fix it? 您是否知道可能导致此错误的原因以及解决此问题的最佳解决方案是什么?

Thanks. 谢谢。

I just got this exact same error. 我刚刚得到了同样的错误。 For me the cause was that in my MyApp-info.plist I had added a new line that was empty, basically there was a blank key-value pair like this: 对我来说原因是在我的MyApp-info.plist中我添加了一个空的新行,基本上有一个空白的键值对,如下所示:

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

Once I removed this, the error disappeared and cordova was able to build again. 一旦我删除了这个,错误消失了,并且cordova能够再次构建。

Hope that helps! 希望有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM