现在Xcode 11中不再包含Application Loader,如何上载IPA [英] How to upload IPA now that Application Loader is no longer included in Xcode 11

查看:302
本文介绍了现在Xcode 11中不再包含Application Loader,如何上载IPA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点害怕问这个问题,因为这个问题对我来说似乎很巨大,但我看不到有人对此感到惊慌.我有点害怕听起来疯狂,但我会继续努力:

我们可以在Apple的帖子中阅读提交更新:

As we can read on Apple's post Submissions Update :

从Xcode 11开始,Application Loader不再包含在 Xcode.有关如何使用Xcode将应用程序上传到App Store Connect的详细信息,请参阅Xcode帮助.

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.

使用Phonegap构建服务的人员和组织在知道自己无权访问Xcode项目文件的情况下问自己如何使IPA联机是合法的.

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.

Apple为我们提供了一个名为 Archives Organizer 的新工具,但正如我们可以在

Apple gives us a new tool called Archives organizer but as we can read on the documentation:

在档案"组织器中,选择要上传的档案,然后 点击分发应用".

In the Archives organizer, select the archive you want to upload, then click Distribute App.

好的,我的存档在哪里? IPA是否被视为档案?如何将IPA集成到此软件中?

也许我还没有找到适合我的解决方案,但是目前,如果没有Application Loader的替代工具,我现在特别担心Phonegap构建的未来.

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.

那么,您甚至遇到过同样的问题,并且找到了解决方案吗? (向科尔多瓦的迁移除外)

我知道,由于UIWebView的贬值以及Cordova与WKWebView的兼容性低,混合应用程序的使用寿命并不长,但我不敢相信Apple会决定在没有警告的情况下终止Phonegap的构建.和往常一样,Phonegap的团队也不是很健谈.

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.

好吧,可以使用以下命令来传输您的ipa,但这样做确实可行,因为我使用的是旧版本的Xcode(10),因此在Xcode 11发布时将不推荐使用它吗?

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 ?

xcrun altool --upload-app --type ios --file "path/to/application.ipa" --username "YOUR_ITMC_USER" --password "YOUR_ITMC_PASSWORD"

推荐答案

我正在使用XCode 11 GM Seed 2(11A420a). 我已经尝试过

I am using XCode 11 GM Seed 2 (11A420a). I've tried

xcrun altool --upload-app --type ios --file "path/to/application.ipa"
--username "YOUR_ITMC_USER" --password "YOUR_ITMC_PASSWORD"

但是它对我不起作用,因为它正在生成类似"Error Domain=ITunesSoftwareServiceErrorDomain Code=-22014的错误代码.

But it didn't work for me as it were generating an error code like "Error Domain=ITunesSoftwareServiceErrorDomain Code=-22014.

我生成了一个App Store API密钥(请参阅 https://appstoreconnect.apple.com/access/api ),保存在我的~/.appstoreconnect/private_keys目录中,并制作了名为applicationloader.sh的bash脚本:

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:

#!/bin/bash
APPFILE=$1
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

然后(在chmod a+x applicationloader.sh之后)我输入

applicationloader.sh app.ipa

,该应用程序就可以上传到testflight了.

and the app uploads to testflight no problem.

希望这会有所帮助.

这篇关于现在Xcode 11中不再包含Application Loader,如何上载IPA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆