Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

Do you have any idea what might have caused this error and what would be the best solution to fix it?

Thanks.

like image 626
alexmngn Avatar asked Jan 25 '16 16:01

alexmngn


1 Answers

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:

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

Once I removed this, the error disappeared and cordova was able to build again.

Hope that helps!

like image 94
shi11i Avatar answered Oct 21 '22 15:10

shi11i