Phonegap 3.3.0 config.xml解析错误 [英] Phonegap 3.3.0 config.xml parsing error
问题描述
它看起来我Phonegap 3.3.0坏了。我这样做:
It looks to me that Phonegap 3.3.0 broken. I do:
$ cordova create app de.app.name "app-name"
$ cd app
$ cordova platform add ios
在 platforms / ios中打开xcode项目/ *。xcodeproj
并运行它(xcode 5.0.2)。我得到一个异常与解析错误config.xml。
Open the xcode project in platforms/ios/*.xcodeproj
and run it (xcode 5.0.2). I get an Exception with a parsing error for config.xml.
我注意到 www / config.xml
platforms / ios / www / config.xml
已损坏。在文件的末尾有一些二进制空白。删除操作会修复错误,但仍然无法安装任何插件。
I notice that www/config.xml
and platforms/ios/www/config.xml
are broken. There is some binary empty space at the end of the file. Removing that fixes the error but still I cannot install any plugins.
有其他人有这个问题吗?如何解决这个问题?
Does anyone else have this problem? How can I fix this?
更新
如果我坚持使用phonegap命令看起来更好:
Update If I stick with phonegap commands things looking better:
$ phonegap create app de.app.name "app-name"
$ cd app
$ phonegap local build ios
config.xml
。 platforms / ios / www / config.xml
更大,但仍有结尾。
config.xml
looks fine now and does contain much more. platforms/ios/www/config.xml
is bigger but still has the broken ending. Also plugin installation still does not work.
更新2
找到一个不错的教程需要使用 cordova
而不是 phonegap
,并执行这样的操作:
Update 2
Found a nice tutorial with does demand to use cordova
instead of phonegap
and does something like this:
cordova create App com.App.Name App
cd App
cordova platform add ios
cordova build ios
cordova plugin add org.apache.cordova.console
但仍然 platforms / ios / www / config.xml
在我添加插件之前,甚至与固定的config.xml它仍然会抛出的错误。彼此彼此。我也试过重新安装phonegap& cordova并重新启动Mac。
But still platforms/ios/www/config.xml
is broken before I add the plugin and even with fixed config.xml it still throws the error. Same same. Also I tried reinstalling phonegap & cordova and restarting the Mac.
推荐答案
问题是由我目录导致的。如果我
Problem is caused by the directory I am in. If I did cd ~
and run the same command it just works!
我在 \Volumes / www
是通过smbfs安装的 samba共享。
I was in \Volumes/www
with is a samba share mounted over smbfs.
这篇关于Phonegap 3.3.0 config.xml解析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!