2013-05-29 116 views
0

我一直在尝试将我的应用程序提交给iTunes连接,但我一直在收到错误An error occured uploading to the iTunes store。我已经尝试过使用Xcode和Application Loader。无法将应用程序上传到iTunes Connect

我检查系统日志,我发现这些错误:

Application Loader[820]: Error: 
/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/bin/iTMSTransporter: line 14: **awk: command not found** 
/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/bin/iTMSTransporter: line 18: ../share/iTMSTransporter.woa/**iTMSTransporter: No such file or directory** 
May 29 11:09:38 Ahmad-MacBook.local Application Loader[820]: Out:* 

这里就是我试图解决这个问题:

  • 一些网站建议,这个问题是与Java,所以我尝试回滚到Java 1.6和Java 1.5并且它不起作用,我也从Oracle的网站安装了Java 1.7,但它也没有工作;
  • 删除Xcode并重新安装它没有成功。

有没有人设法解决这个问题?

我正在运行OSX 10.8.3。当前的Java版本是:

Java版本 “1.6.0_45”
的Java(TM)SE运行时环境(建立1.6.0_45-b06-451-11M4406)
爪哇的HotSpot(TM)64位服务器VM(建20.45-b01-451,混合模式)

+0

您是否使用xcode?将它发布到appstore中。产品>存档>分发>提交给IOS appstore? – Navn

+0

我试过产品>归档>分发>提交给IOS appstore,我也试过了应用程序加载器。我得到了同样的错误 – ahmad

回答

0

试试这个(在终端类型)

cd /System/Library/Frameworks/JavaVM.framework/Versions 
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 
+0

我已经试过这个,执行这些行之后应该是$ java -version命令的结果? – ahmad

+0

它仍然显示1.7 – ahmad

1

我有完全一样的问题,并能够通过稍微修改文件进行修复

/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/MacOS/itms/bin/iTMSTransporter

变化的路径,AWK绝对(我也未注释的回声脚本路径,这可能不是必需的)。在这里我更改的文件:

#!/bin/sh 

# if the user has the run script in their PATH 
# then we can get the path to the script from 
# 'which'. otherwise, we have to get the path 
# from $0 
if [ "$0" = "iTMSTransporter" ] ; then 
    SCRIPT_PATH=`which iTMSTransporter` 
else 
    SCRIPT_PATH=$0 
fi 

# get the script's directory 
SCRIPT_DIR=`echo $SCRIPT_PATH | /usr/bin/awk -F"/" '{print substr($0,1,length($0)-length($NF))}'` 

# call the transporter relative to the script's directory 
echo Calling: ${SCRIPT_DIR}../share/iTMSTransporter.woa/iTMSTransporter "[email protected]" 
"${SCRIPT_DIR}../share/iTMSTransporter.woa/iTMSTransporter" "[email protected]" 

我想这种行为是由不正确的类路径设置,我无法解决,虽然。修复脚本后,我设法通过XCode Organizer上传我的应用程序。

祝你好运!

相关问题