无法上传.ipa文件:通信错误。请使用诊断模式检查连接性

问题描述 投票:0回答:1

我正在尝试上传用.ipa生成的expo文件。 Application Loader不再可用,因此唯一的方法是使用命令行。

这是我的工作:

xcrun altool --upload-app --type ios -f ~/Downloads/app-645d5380-019e-42a6-aba2-d737e9181221-archive.ipa -u [email protected] --password my-app-specific-password --verbose

获取此:

Communication error. Please use diagnostic mode to check connectivity.

我已经尝试过以下问题的所有答案:

我也尝试过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>&#63743;</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.
xcode networking app-store expo xcrun
1个回答
0
投票

最有可能是网络配置问题,请尝试以下操作:

  1. 转到首选项>网络>高级>代理
  2. 确保已选中自动代理发现和自动代理配置
  3. 不检查任何其他代理选项
  4. 确保未选中SOCKS Proxy

希望有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.