xcode - 无法上传 .ipa 文件:通信错误。请使用诊断模式检查连接
问题描述
我正在尝试上传使用.ipa
生成的文件expo
。应用程序加载器已不复存在,因此唯一的方法是使用命令行。
这是我所做的:
xcrun altool --upload-app --type ios -f ~/Downloads/app-645d5380-019e-42a6-aba2-d737e9181221-archive.ipa -u myappleid@gmail.com --password my-app-specific-password --verbose
得到这个:
Communication error. Please use diagnostic mode to check connectivity.
我已经尝试了这些问题的所有答案:
- 非常慢的应用程序上传/通信失败 - 应用程序加载器
- App Store Connect 操作错误:无法连接到 Apple 的网络服务
- 无法使用 Application Loader 上传 iOS 应用程序
- 尝试将应用提交到应用商店时出现通信错误
- 使用防火墙后的应用程序加载器进行 iTunes 连接
- 既然 Xcode 11 中不再包含 Application Loader,如何上传 IPA
我也试过 sudo 它,关闭防火墙,关闭 littlesnitch,关闭 VPN,使用-ITunesTransport DAV
. 我尝试使用不同的互联网提供商:通过我的手机连接笔记本电脑,甚至尝试从位于不同国家的不同 Mac 上传。我试过使用 xcode 10.3 应用程序加载器。
完整的错误输出:
[2019-10-12 11:14:25 CEST] <main> ERROR: Communication error. Please use diagnostic mode to check connectivity.
[2019-10-12 11:14:25 CEST] <main> ERROR: Error while processing package 1482820372.itmsp
[2019-10-12 11:14:25 CEST] <main> ERROR: An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.
[2019-10-12 11:14:25 CEST] <main> DEBUG: com.apple.transporter.core.api.UnrecoverableOperationException: Communication error. Please use diagnostic mode to check connectivity.
at com.apple.transporter.JSONService.invoke(JSONService.java:436)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1244)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1203)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1167)
at com.apple.transporter.WebService.authenticateOperation(WebService.java:320)
at com.apple.transporter.operation.Upload$3.invoke(Upload.java:801)
at com.apple.transporter.operation.Upload$3.invoke(Upload.java:793)
at com.apple.transporter.core.ws.impl.WebServiceInvokerDefaultImpl.invokeWithRetry(WebServiceInvokerDefaultImpl.java:79)
at com.apple.transporter.operation.Upload.performAuthenticateOperationForUpload(Upload.java:793)
at com.apple.transporter.operation.Upload.validateAssets(Upload.java:550)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:296)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:129)
at com.apple.transporter.operation.Upload.performRequest(Upload.java:1268)
at com.apple.transporter.operation.Verify.execute(Verify.java:120)
at com.apple.transporter.Application.reallyBegin(Application.java:224)
at com.apple.transporter.Application.begin(Application.java:114)
at com.apple.transporter.osgi.TransporterService.start(TransporterService.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.apple.transporter.starter.TransporterStarter.runService(TransporterStarter.java:476)
at com.apple.transporter.starter.TransporterStarter.runTransporterService(TransporterStarter.java:450)
at com.apple.transporter.starter.TransporterStarter.start(TransporterStarter.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.apple.transporter.bootstrap.BootstrapperPhase2.runStartable(BootstrapperPhase2.java:355)
at com.apple.transporter.bootstrap.BootstrapperPhase2.runStarter(BootstrapperPhase2.java:317)
at com.apple.transporter.bootstrap.BootstrapperPhase2.start(BootstrapperPhase2.java:130)
at com.apple.transporter.bootstrap.BootstrapperPhase1.startOSGiFramework(BootstrapperPhase1.java:321)
at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:99)
at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:59)
at com.apple.transporter.launcher.Launcher.launchBootstrapper(Launcher.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.apple.transporter.launcher.Application.start(Application.java:220)
at com.apple.transporter.launcher.Application.main(Application.java:658)
[2019-10-12 11:14:25 CEST] <main> INFO: JSON:{"msg":{"phase":"Upload","count":3,"description":"Operation failed","index":3},"messageType":"VerifyProgress"}
[2019-10-12 11:14:25 CEST] <main> DBG-X: Returning 1
2019-10-12 11:14:25.989 altool[6464:70139] Out:
Package Summary:
1 package(s) were not uploaded because they had problems:
/var/folders/2m/vfw1bgqd4pv7hk86kcbvcrlc0000gn/T/4AA8A45F-6127-4FC7-8F55-01708CFCF921/1482820372.itmsp - Error Messages:
Communication error. Please use diagnostic mode to check connectivity.
Error while processing package 1482820372.itmsp
An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.
2019-10-12 11:14:25.992 altool[6464:70139] Errors: (
"Error Domain=ITunesTransporterErrorDomain Code=-18000 \"Communication error. Please use diagnostic mode to check connectivity.\" UserInfo={NSLocalizedRecoverySuggestion=Communication error. Please use diagnostic mode to check connectivity., NSLocalizedDescription=Communication error. Please use diagnostic mode to check connectivity., NSLocalizedFailureReason=Communication error. Please use diagnostic mode to check connectivity.}",
"Error Domain=ITunesTransporterErrorDomain Code=-18000 \"Error while processing package 1482820372.itmsp\" UserInfo={NSLocalizedRecoverySuggestion=Error while processing package 1482820372.itmsp, NSLocalizedDescription=Error while processing package 1482820372.itmsp, NSLocalizedFailureReason=Error while processing package 1482820372.itmsp}",
"Error Domain=ITunesTransporterErrorDomain Code=-18000 \"An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.\" UserInfo={NSLocalizedRecoverySuggestion=An exception has occurred: Communication error. Please use diagnostic mode to check connectivity., NSLocalizedDescription=An exception has occurred: Communication error. Please use diagnostic mode to check connectivity., NSLocalizedFailureReason=An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.}"
)
2019-10-12 11:14:26.021 altool[6464:70128] *** Error: Errors uploading '/Users/my_user_name/Downloads/app-645d5380-019e-42a6-aba2-d737e9181221-archive.ipa': (
"Error Domain=ITunesTransporterErrorDomain Code=-18000 \"Communication error. Please use diagnostic mode to check connectivity.\" UserInfo={NSLocalizedRecoverySuggestion=Communication error. Please use diagnostic mode to check connectivity., NSLocalizedDescription=Communication error. Please use diagnostic mode to check connectivity., NSLocalizedFailureReason=Communication error. Please use diagnostic mode to check connectivity.}",
"Error Domain=ITunesTransporterErrorDomain Code=-18000 \"Error while processing package 1482820372.itmsp\" UserInfo={NSLocalizedRecoverySuggestion=Error while processing package 1482820372.itmsp, NSLocalizedDescription=Error while processing package 1482820372.itmsp, NSLocalizedFailureReason=Error while processing package 1482820372.itmsp}",
"Error Domain=ITunesTransporterErrorDomain Code=-18000 \"An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.\" UserInfo={NSLocalizedRecoverySuggestion=An exception has occurred: Communication error. Please use diagnostic mode to check connectivity., NSLocalizedDescription=An exception has occurred: Communication error. Please use diagnostic mode to check connectivity., NSLocalizedFailureReason=An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.}"
)
2019-10-12 11:14:26.022 altool[6464:70128] 'IosApplicationArchiveExpander', cleanupDestinationDirectory: '/var/folders/2m/vfw1bgqd4pv7hk86kcbvcrlc0000gn/T/app-645d5380-019e-42a6-aba2-d737e9181221-archive-3.ipa'
2019-10-12 11:14:26.120 altool[6464:70128] Cleaning up files....
2019-10-12 11:14:26.127 altool[6464:70128] Deleted temporary package at '/var/folders/2m/vfw1bgqd4pv7hk86kcbvcrlc0000gn/T/4AA8A45F-6127-4FC7-8F55-01708CFCF921/1482820372.itmsp'.
2019-10-12 11:14:26.127 altool[6464:70128] -[ITunesTransporter dealloc] <ITunesTransporter: 0x7ff236776640>
2019-10-12 11:14:26.129 altool[6464:70128] Deallocating <ITunesSoftwareServiceWorkSeriesFactory: 0x7ff2367744b0>
我也尝试过 XCode 10.3 Application Loader。这是错误:
[2019-10-16 15:10:31 CEST] <main> INFO: Web service received a server status of: HTTP/1.1 504 Gateway Time-out
[2019-10-16 15:10:31 CEST] <main> INFO: Web service response received:
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
font-size: 15px;
font-weight: 200;
line-height: 20px;
color: #4c4c4c;
text-align: center;
}
.section {
margin-top: 50px;
}
</style>
</head>
<body>
<div class="section">
<h1></h1>
<h3>Gateway Timeout</h3>
<p>Correlation Key: OBSCURED_COZ_IM_NOT_SURE_IF_I_CAN_SHARE_IT</p>
</div>
</body>
</html>
[2019-10-16 15:10:31 CEST] <main> ERROR: Communication error. Please use diagnostic mode to check connectivity.
[2019-10-16 15:10:31 CEST] <main> ERROR: Error while processing package 1483762480.itmsp
[2019-10-16 15:10:31 CEST] <main> ERROR: An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.
[2019-10-16 15:10:31 CEST] <main> DEBUG: com.apple.transporter.core.api.UnrecoverableOperationException: Communication error. Please use diagnostic mode to check connectivity.
at com.apple.transporter.JSONService.invoke(JSONService.java:436)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1244)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1203)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1167)
at com.apple.transporter.WebService.authenticateOperation(WebService.java:320)
at com.apple.transporter.operation.Upload$3.invoke(Upload.java:801)
at com.apple.transporter.operation.Upload$3.invoke(Upload.java:793)
at com.apple.transporter.core.ws.impl.WebServiceInvokerDefaultImpl.invokeWithRetry(WebServiceInvokerDefaultImpl.java:79)
at com.apple.transporter.operation.Upload.performAuthenticateOperationForUpload(Upload.java:793)
at com.apple.transporter.operation.Upload.validateAssets(Upload.java:550)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:296)
at com.apple.transporter.operation.Upload.performUploadRequest(Upload.java:129)
at com.apple.transporter.operation.Upload.performRequest(Upload.java:1268)
at com.apple.transporter.operation.Verify.execute(Verify.java:120)
at com.apple.transporter.Application.reallyBegin(Application.java:224)
at com.apple.transporter.Application.begin(Application.java:114)
at com.apple.transporter.osgi.TransporterService.start(TransporterService.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.apple.transporter.starter.TransporterStarter.runService(TransporterStarter.java:476)
at com.apple.transporter.starter.TransporterStarter.runTransporterService(TransporterStarter.java:450)
at com.apple.transporter.starter.TransporterStarter.start(TransporterStarter.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.apple.transporter.bootstrap.BootstrapperPhase2.runStartable(BootstrapperPhase2.java:355)
at com.apple.transporter.bootstrap.BootstrapperPhase2.runStarter(BootstrapperPhase2.java:317)
at com.apple.transporter.bootstrap.BootstrapperPhase2.start(BootstrapperPhase2.java:130)
at com.apple.transporter.bootstrap.BootstrapperPhase1.startOSGiFramework(BootstrapperPhase1.java:321)
at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:99)
at com.apple.transporter.bootstrap.BootstrapperPhase1.bootstrap(BootstrapperPhase1.java:59)
at com.apple.transporter.launcher.Launcher.launchBootstrapper(Launcher.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.apple.transporter.launcher.Application.start(Application.java:212)
at com.apple.transporter.launcher.Application.main(Application.java:642)
[2019-10-16 15:10:31 CEST] <main> INFO: JSON:{"msg":{"phase":"Upload","count":3,"description":"Operation failed","index":3},"messageType":"VerifyProgress"}
[2019-10-16 15:10:31 CEST] <main> DBG-X: Returning 1
Package Summary:
1 package(s) were not uploaded because they had problems:
/var/folders/2m/vfw1bgqd4pv7hk86kcbvcrlc0000gn/T/3FBECDBC-4EDE-458A-8F0F-2245871DE732/1483762480.itmsp - Error Messages:
Communication error. Please use diagnostic mode to check connectivity.
Error while processing package 1483762480.itmsp
An exception has occurred: Communication error. Please use diagnostic mode to check connectivity.
解决方案
很可能是网络配置问题,请尝试以下操作:
- 转到首选项 > 网络 > 高级 > 代理
- 确保选中自动代理发现和自动代理配置
- 不要检查任何其他代理选项
- 确保
SOCKS Proxy
未选中
希望这可以帮助!
推荐阅读
- sql - 默认隐式参数 SQL
- oauth - MS OAuth 2.0 不适用于多因素身份验证
- python - 合并具有相似工作的excel文件和文本文件
- spring - PrincipalExtractor 和 AuthoritiesExtractor 没有命中
- react-native - 在组件中定义 NavBar 的右键,而不是在场景中(react-native-router-flux)
- python - 相当于Python中R的qqplot
- python-3.x - 如何使用flask检查每个文件夹是否有特定文件并使用jinja2显示结果?
- sql - 如何使用 SQL Server 创建算法
- python - Kolmogorov-Smirnov 解释两个信号之间的结果
- kubernetes - 在 Kubernetes 中,是否可以通过服务选择器中的元数据字段来引用 pod?