xcode 无法上传应用程序 - '上传到 iTunes 商店时出错'
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5291039/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't upload App - 'An error occurred uploading to the itunes store'
提问by Smikey
I'm trying to upload my app to the store. This isn't the first time so I'm familiar with the process.
我正在尝试将我的应用程序上传到商店。这不是第一次,所以我熟悉这个过程。
I've tried both through the Organizer (preferred method) and the Application Loader, but both offer vague error messages.
我已经通过 Organizer(首选方法)和 Application Loader 进行了尝试,但都提供了模糊的错误消息。
I've recently updated to Xcode 4 in an attempt to fix it. My archived project validates fine and everything, but shortly after hitting submit, I get an error saying:
我最近更新到 Xcode 4 试图修复它。我的存档项目验证一切正常,但在点击提交后不久,我收到一条错误消息:
An error occurred uploading to the itunes store
上传到 iTunes 商店时发生错误
But no other info. So I really don't know what could be wrong. I've appealed to Apple but nothing yet.
但没有其他信息。所以我真的不知道哪里出了问题。我已经向苹果提出上诉,但还没有。
What could be wrong?
可能有什么问题?
EDIT:
编辑:
I should probably mention that my project has 2 targets, but I have provisioning profiles for both, both for development and distribution, so can't see why this would be a problem. It's the only unusual thing about the project as far as I can tell. Still no word from Apple either...
我可能应该提到我的项目有 2 个目标,但是我为这两个目标提供了配置文件,用于开发和分发,所以不明白为什么会出现问题。据我所知,这是该项目唯一不寻常的事情。苹果也没有任何消息......
Thanks!
谢谢!
Michael
迈克尔
采纳答案by Fabio Poloni
You need to change your Build Configuration for your Archive Scheme to Distribution or smth. like this.
您需要将您的存档方案的构建配置更改为 Distribution 或 smth。像这样。
For this, go to Product > Edit Scheme and on the left side you'll find the Archive-Scheme.
为此,请转到“产品”>“编辑方案”,在左侧您将找到“存档方案”。
Check if you've added everything to your project like Entitlements, and wether you've added this to your configuration. Check also the Base SDK and the code signing options of your configuration. If you've done this, it should really work.
检查您是否已将所有内容(如权利)添加到您的项目中,以及您是否已将其添加到您的配置中。还要检查基础 SDK 和配置的代码签名选项。如果你已经这样做了,它应该真的有效。
回答by Diana
For those of you that are having this issue with Xcode 4.3.2 and Java SE 6 1.6, try this:
对于那些在 Xcode 4.3.2 和 Java SE 6 1.6 中遇到此问题的人,请尝试以下操作:
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
It worked for me.
它对我有用。
回答by user92301
A bit late, I know - but for anyone still having this problem - Look in your /var/log/system.log log file. In my case the problem was that the iTMSTransporter script (used by the Organizer when uploading the file) used 'awk', and I had to replace it with '/usr/bin/awk'.
有点晚了,我知道 - 但对于仍然有这个问题的人 - 查看你的 /var/log/system.log 日志文件。就我而言,问题是 iTMSTransporter 脚本(由组织者在上传文件时使用)使用了“awk”,我不得不将其替换为“/usr/bin/awk”。
Completely solved my problem.
完全解决了我的问题。
Y.
Y。
回答by koregan
I've had trouble before where I had a quote '
in my password. It would always fail to upload.
'
在我的密码中有引号之前,我遇到了麻烦。总是上传失败。
回答by Smikey
Well, if anyone is having a similar problem, I seem to have fixed it.
好吧,如果有人遇到类似的问题,我似乎已经解决了。
Not entirelysure how, but I completely deleted xcode (from the terminal), reinstalled it, restarted my computer, and by some sort of black magic, it just started uploading.
不完全确定如何,但我完全删除了 xcode(从终端),重新安装它,重新启动我的计算机,并且通过某种黑魔法,它刚刚开始上传。
回答by Alex
I have the same problem and the solution was to update to java 1.6
我有同样的问题,解决方案是更新到 java 1.6
I see this when I was looking in the console log to understand why Application Loader doesn't work.
当我查看控制台日志以了解 Application Loader 不工作的原因时,我看到了这一点。
回答by Rafael
I restarted my computer and it worked. Very wear problem. The other thing that I did, was to submit directly after archiving, instead of validiting first.
我重新启动了我的电脑,它工作了。很磨损的问题。我做的另一件事是在存档后直接提交,而不是先验证。
回答by MacMark
In my case the proxy configured in Network Preferences was the reason. Without proxy it worked.
在我的情况下,网络首选项中配置的代理是原因。没有代理它的工作。
回答by user706527
I spent all morning trying to figure this out, so I thought I'd post what fixed my issue with app loader. I just downloaded the latest App Loader (2.5.1) from iTunes connect. The link is in the footer.
我花了一上午的时间试图弄清楚这一点,所以我想我会发布解决我的应用加载程序问题的方法。我刚刚从 iTunes Connect 下载了最新的 App Loader (2.5.1)。链接在页脚中。