如下图1

Validate...可以通过,但Distribute...->Submit to App Store时会出现
图2

所示的错误,解决办法创建两个软链接:
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
详细原因:JDK版本的问题, 这么分析 Xcode所用的uploader对JDK的依赖,有版本依赖,这种做法不规范。
规范的做法应该类似这里所说的(瞎猜的):
http://linux-wiki.cn/wiki/zh-hans/%E5%8A%A8%E6%80%81%E5%BA%93%28.so%29 版本 Section
参考:
http://stackoverflow.com/questions/10011635/an-error-occurred-uploading-to-the-itunes-store-please-upgrade-java/10017638#comment12809592_10017638
http://stackoverflow.com/questions/10022981/an-error-occurred-uploading-to-the-itunes-store
本文介绍了解决Xcode在上传应用到iTunes Store过程中遇到特定错误的方法。通过创建指向特定JDK版本的软链接,可以绕过由Xcode使用的uploader对JDK版本依赖导致的问题。
1万+

被折叠的 条评论
为什么被折叠?



