スポンサーリンク

Phonegapでconfig.xmlのパースエラーは,アイコン設定変更時に発生する。その解決手順

Phonegapcordova)フレームワークのプロジェクトで,

'NSInternalInconsistencyException', reason: config.xml parse error

というビルド時エラー(または実行時エラー)が出ることがある。


よくある理由は,十中八九,アイコン周りである。画像はちゃんと設置されているだろうか。


または,Phonegapのバージョン違いの手順書に沿って開発してしまったという点が原因の場合もある。

自分が使っているcordovaのバージョンと,自分が見ている作業チュートリアルのバージョンは,マイナーバージョンまで含めて一致しているだろうか。

もし違う場合は,必要なXMLリソースファイルが異なるのでエラーになったりする。


それでも解決しない場合,プロジェクトを新しく作り直してみよう。


下記は,同じエラーに悩まされている人たちの声。


新しいプロジェクトを作成し直したら,エラーが消えた,という例:

cordova - PhoneGap iOS app fails to start on device only -- config.xml parse error - Stack Overflow
http://stackoverflow.com/questions/22...

  • I was able to fix this by generating a new phonegap project and copying over the new config.xml to my project (and then changed the name and id). Not sure what exactly was wrong with my file, but it works now.

スプラッシュ(アイコン)を変更しようとしたら,config.xmlのパースエラーになった:

ios - NSInternalInconsistencyException in phone gap splash screen - Stack Overflow
http://stackoverflow.com/questions/17...

  • I'm trying to change the splash screen


PhoneGap iOS App Icon - Ios, Cordova - Programmers Answer
http://programmers.fbgamehack.com/112...

  • Open Your project in Xcode and place App Icon it will work.


How to change icons and screens in phonegap? - SeeQues
http://www.seeques.com/25342240/how-t...

  • Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'config.xml parse error line 4 col 40' * First throw call stack:


NSInternalInconsistencyException Pushwoosh for iOS on Phonegap 2.9 | BlogoSfera
http://www.blogosfera.co.uk/2013/08/n...

  • it crashes when I attempt to build it.

Phonegapのバージョン違いで,使用するXMLが増えたのでエラーになった:

HelloWorld実行時のエラーアラートについて - Google グループ
https://groups.google.com/forum/#!msg...

  • res/xmlフォルダの中身のxmlが増えた


PhoneGap3系利用時に、はまった事 - Intelligent Technology's Technical Blog
http://iti.hatenablog.jp/entry/2013/1...

  • 2ヶ月で、PhoneGapのバージョンは、3.0から3.2にアップされています。バージョンアップにより改良されるのはよいですが、ドキュメントに関しても、どのツールが必要など分かりやすくしてほしい