我一直在尝试将我的应用程序提交到iTunes connect,但我收到了错误An error occured uploading to the iTunes store
。我已经尝试过使用Xcode和Application Loader。
我检查了系统日志,发现了这些错误:
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:*
以下是我试图解决此问题的方法:
有没有人设法解决这个问题?
我正在运行OSX 10.8.3。当前的Java版本是:
java版“1.6.0_45”
Java(TM)SE运行时环境(版本1.6.0_45-b06-451-11M4406)
Java HotSpot(TM)64位服务器VM(内置20.45-b01-451,混合模式)
答案 0 :(得分: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 "$@"
"${SCRIPT_DIR}../share/iTMSTransporter.woa/iTMSTransporter" "$@"
我猜这种行为是由inproper类路径设置引起的,但我无法解决。修复脚本后,我设法通过XCode Organizer上传我的应用程序。
祝你好运!答案 1 :(得分: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