2013-05-29 118 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上傳我的應用程序。

祝你好運!

相關問題