现在 Xcode 11 中不再包含 Application Loader,如何上传 IPA
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/57976017/
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
How to upload IPA now that Application Loader is no longer included in Xcode 11
提问by Enzo B.
I'm a little afraid to ask this question because the problem seems huge to me and yet I don't see anyone panicking about it. I'm a little afraid to sound crazy, but I'm going to go for it :
我有点害怕问这个问题,因为这个问题对我来说似乎很大,但我没有看到有人对此感到恐慌。我有点害怕听起来很疯狂,但我会努力的:
As we can read on Apple's post Submissions Update:
正如我们在 Apple 的帖子提交更新中所读到的:
Starting with Xcode 11, Application Loader is no longer included in Xcode. For details on how to upload your apps to App Store Connect using Xcode, see Xcode Help.
从 Xcode 11 开始,应用程序加载器不再包含在 Xcode 中。有关如何使用 Xcode 将您的应用程序上传到 App Store Connect 的详细信息,请参阅 Xcode 帮助。
It is legitimate for people and organizations using the Phonegap build service to ask themselves how to put our IPA online knowing that we do not have access to the Xcode project file.
使用 Phonegap 构建服务的人和组织在知道我们无权访问 Xcode 项目文件的情况下询问自己如何将我们的 IPA 联机是合法的。
Apple gives us a new tool called Archives organizerbut as we can read on the documentation:
Apple 为我们提供了一个名为Archives Organizer的新工具,但正如我们在文档中所读到的:
In the Archives organizer, select the archive you want to upload, then click Distribute App.
在档案管理器中,选择您要上传的档案,然后单击分发应用程序。
Okay, where's my archive? Is an IPA considered an archive? How do I integrate my IPA into this software?
好的,我的存档在哪里?IPA 是否被视为档案?如何将我的 IPA 集成到该软件中?
Maybe I haven't found the solution that is right in front of me but for the moment I'm especially afraid of the future of Phonegap build if there is no alternative tool for the Application Loader.
也许我还没有找到适合我的解决方案,但目前我特别害怕如果没有应用程序加载器的替代工具,Phonegap 构建的未来。
So, did you even facing the same problem and do you find a solution ? (excepting a migration to Cordova)
那么,您是否面临同样的问题并找到解决方案?(迁移到科尔多瓦除外)
I know that hybrid applications don't have a long life ahead of them because of the depreciation of UIWebView and the low compatibility of cordova with WKWebView but I can't believe Apple decides to kill Phonegap build without a warning. And as usual, Phonegap's teams are not very talkative.
我知道由于 UIWebView 的贬值以及cordova与WKWebView的低兼容性,混合应用程序的寿命不会很长,但我无法相信Apple决定在没有警告的情况下终止Phonegap构建。和往常一样,Phonegap 的团队不是很健谈。
Edit
编辑
Well, It is possible to transfer your ipa with the following command but did it is worked because I have the old version of Xcode (10) and so it will be deprecated when Xcode 11 release ?
好吧,可以使用以下命令传输您的 ipa,但它是否有效,因为我有旧版本的 Xcode (10),因此在 Xcode 11 发布时它将被弃用?
xcrun altool --upload-app --type ios --file "path/to/application.ipa" --username "YOUR_ITMC_USER" --password "YOUR_ITMC_PASSWORD"
采纳答案by Mazzaroth
I am using XCode 11 GM Seed 2 (11A420a). I've tried
我正在使用 XCode 11 GM Seed 2 (11A420a)。我试过了
xcrun altool --upload-app --type ios --file "path/to/application.ipa"
--username "YOUR_ITMC_USER" --password "YOUR_ITMC_PASSWORD"
But it didn't work for me as it were generating an error code like "Error Domain=ITunesSoftwareServiceErrorDomain Code=-22014
.
但它对我不起作用,因为它生成了一个错误代码,如"Error Domain=ITunesSoftwareServiceErrorDomain Code=-22014
.
I generated an App Store API Key (see https://appstoreconnect.apple.com/access/api), saved in in my ~/.appstoreconnect/private_keys
directory and made this bash script named applicationloader.sh
:
我生成了一个 App Store API 密钥(参见https://appstoreconnect.apple.com/access/api),保存在我的~/.appstoreconnect/private_keys
目录中,并将这个 bash 脚本命名为applicationloader.sh
:
#!/bin/bash
APPFILE=
set -euo pipefail
# key is in ~/.appstoreconnect/private_keys
KEY="<the key part of the AuthKey_key.p8 file>"
ISSUER="<YOUR ISSUER ID>"
xcrun altool --upload-app --type ios --file $APPFILE --apiKey $KEY --apiIssuer $ISSUER
Then (after a chmod a+x applicationloader.sh
) I just type
然后(在 a 之后chmod a+x applicationloader.sh
)我只需输入
applicationloader.sh app.ipa
and the app uploads to testflight no problem.
并且应用程序上传到 testflight 没问题。
Hope this helps.
希望这可以帮助。
回答by Mohamed Raffi
Apple today announced that it is making a new version of its Transporter developer application available on the Mac App Store. This app allows developers to easily upload files to App Store Connect and more.
Apple 今天宣布,它正在 Mac App Store 上提供其 Transporter 开发者应用程序的新版本。此应用程序允许开发人员轻松地将文件上传到 App Store Connect 等。
Available in the Mac AppStore
在 Mac AppStore 中可用
回答by Fattie
November 2019 - the new "Transporter" app
2019 年 11 月 - 新的“Transporter”应用程序
You have to get, from the ordinary mac app store, the Apple app "Transporter". To be clear click the ordinary "App Store" icon, in the icon bar, on your mac, search "Apple Transporter" and get it (it's totally free).
In current Xcode. As usual, increase the build number, disconnect tethered phones, and click "Archive" as usual
When complete, click "Distribute App" in the usual way. Do select"App Store Connect" in the usual way. But. Then select Export ... do NOTselect upload.
You will be asked where to save to - be sure to choose your Desktop.
A folder(not file) will be left on your desktop. Notice the current time of day to distinguish the correct folder. (It's annoying when you get the wrong folder!)
In the folder is an ".ipa" file. Everything else is NOT used / of no value whatsoever.
Launch the "Transporter" app. Simply drag onlythe ipa fileinto the Transporter app.
你必须从普通的 mac 应用商店获取苹果应用“Transporter”。为清楚起见,单击普通的“App Store”图标,在 Mac 上的图标栏中,搜索“Apple Transporter”并获取它(完全免费)。
在当前的 Xcode 中。像往常一样,增加内部版本号,断开系留电话,然后像往常一样单击“存档”
完成后,按常规方式单击“分发应用程序”。按照通常的方式选择“App Store Connect”。但。然后选择导出...不要选择上传。
系统会询问您保存到何处 - 请务必选择您的桌面。
一个文件夹(不是文件)将留在您的桌面上。注意当前时间以区分正确的文件夹。(当你得到错误的文件夹时很烦人!)
文件夹中有一个“.ipa”文件。其他一切都没有使用/没有任何价值。
启动“传输器”应用程序。只需拖动只IPA文件到运输车应用。
Useful Transporter app Tip:
有用的转运应用提示:
Be sure to look at the Preferencesof the Transporter app. It is possibleto get rid of (one) of the useless "OK" clicks.
请务必查看Transporter 应用程序的首选项。这是可能的无用的“OK”点击摆脱(之一)。
--
——
Historic path:
历史路线:
Sept 22, 2019
2019 年 9 月 22 日
Apple have utterly screwed it:
苹果彻底搞砸了:
Xcode 11 won't upload. It's OK to develop, build, and archive in Xcode 11, but upload using 10.3.
Xcode 11 不会上传。可以在 Xcode 11 中开发、构建和存档,但使用 10.3 上传。
Sept 2019
2019 年 9 月
Astonishingly, appstoreconnect is not working in Safaricurrently. Use Chrome. (No, really.)
令人惊讶的是,appstoreconnect目前在Safari 中不起作用。使用铬。(不完全是。)
At the final step of submit to TestFlight, Safari crashes at the step where you type in a description of the build. Just use Chrome.
在提交到 TestFlight 的最后一步,Safari 在您输入构建描述的步骤中崩溃。只需使用 Chrome。
回答by David Vittori
From Console you can do:
从控制台您可以执行以下操作:
xcrun altool --upload-app --type ios --file <Path-to-ipa> --username <Username> --password <One-time-pass>
Remember to use the one time pass from https://appleid.apple.com/account/manageand to omit the double quotes on PATH, USERNAME, and PASSWORD
请记住使用https://appleid.apple.com/account/manage 中的一次性传递并省略 PATH、USERNAME 和 PASSWORD 上的双引号
Apple transporter
苹果转运车
There is also a new app that Apple released that allows developers to send files to App Store Connect
苹果还发布了一款新应用,允许开发者将文件发送到 App Store Connect
https://apps.apple.com/us/app/transporter/id1450874784?mt=12
https://apps.apple.com/us/app/transporter/id1450874784?mt=12
回答by Mohammad Parvez
Apple Just launched transporter app to submit app to itunesconnect
苹果刚刚推出了传输应用程序提交应用程序到itunesconnect
https://apps.apple.com/us/app/transporter/id1450874784?mt=12
https://apps.apple.com/us/app/transporter/id1450874784?mt=12
回答by HeikkiDev
Enzo's answer works like a charm. But for those who are confusing like me you need to generate an app-specific password here: https://appleid.apple.com/account/manage
恩佐的回答很有魅力。但是对于像我这样困惑的人,您需要在此处生成特定于应用程序的密码:https: //appleid.apple.com/account/manage
(I know, I'm responding to Enzo's answer here but I'm unable to comment)
(我知道,我在这里回应恩佐的回答,但我无法发表评论)
回答by Mohammad Parvez
Xcode supports uploading apps from the Organizer window or from the command line with xcodebuild or xcrun altool. Application Loader is no longer included with Xcode. (29008875)
Xcode 支持从管理器窗口或从命令行使用 xcodebuild 或 xcrun altool 上传应用程序。Application Loader 不再包含在 Xcode 中。(29008875)
xcrun altool --upload-app --type ios --file --username --password
xcrun altool --upload-app --type ios --file --username --password
Apple also launched transporter app to upload direct ipa to itunes connect.
苹果还推出了传输器应用程序,可以将 ipa 直接上传到 iTunes 连接。
回答by Matt Hough
What exactly does this mean "the key part of the AuthKey_key.p8 file" Sorry unable to comment, why everything these days so bloody annoyingly complicated when it needn't be
这究竟是什么意思“AuthKey_key.p8 文件的关键部分”很抱歉无法发表评论,为什么这些天的一切都如此血腥烦人的复杂,当它不需要时
回答by Ahmed Aboelyazeed
Apple Has introduced Transporter App on App Store you can download it and use it instead of Application Loader
Apple 在 App Store 上推出了 Transporter App 你可以下载并使用它代替 Application Loader
回答by James
Okay, where's my archive? Is an IPA considered an archive? How do I integrate my IPA into this software?
好的,我的存档在哪里?IPA 是否被视为档案?如何将我的 IPA 集成到该软件中?
The archive section will create your IPA file, and let you upload it directly to the apple developer area, ready to submit to the store.
存档部分将创建您的 IPA 文件,并让您将其直接上传到苹果开发者专区,准备提交到商店。
In Xcode, from the menu at the top click "Product" and then "Archive". Follow the onscreen instructions. At this point your IPA file is created. You can choose to automatically distribute your file to the appstore, but I suggest clicking the "Validate App" option first, which will re-request the correct certificates/provisions and give you a summary of any issues. If no issues you can click "Distribute App" and it will upload the IPA file to your Appstore Connect (formerly iTunes Connect) area.
在 Xcode 中,从顶部的菜单中单击“产品”,然后单击“存档”。按照屏幕上的说明进行操作。此时,您的 IPA 文件已创建。您可以选择自动将文件分发到应用商店,但我建议先单击“验证应用”选项,这将重新请求正确的证书/规定,并为您提供任何问题的摘要。如果没有问题,您可以单击“分发应用程序”,它将 IPA 文件上传到您的 Appstore Connect(以前称为 iTunes Connect)区域。