无法将 .ipa 文件上传到试飞

Unable to upload the .ipa file to Test-flight

提问人:Bilal Siddiqui 提问时间:7/26/2023 最后编辑:CJKBilal Siddiqui 更新时间:7/27/2023 访问量:178

问:

我创建了一个管道,用于构建 ipa 文件并上传它。
以下是将 ipa 文件上传到 test-flight 的命令:

      upload_to_testflight:
        stage: upload_to_testflight
        image: alpine:latest  
        script:  
          - xcrun altool --upload-app -f ios/test.ipa -t ios -u $YOUR_APPLE_ID -p $YOUR_APP_SPECIFIC_PASSWORD --verbose

管道向我抛出这个错误:


2023-07-26 17:35:29.069 Verbose logging enabled.
2023-07-26 17:35:29.071 Will look for transporter at executable bundle relative path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter
2023-07-26 17:35:29.071 Looking for Transporter at path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter
2023-07-26 17:35:29.071 Looking for Transporter at path: /Applications/Xcode.app/Contents/Developer/usr/bin/../SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter
2023-07-26 17:35:29.071 Looking for Transporter at path: /Applications/Xcode.app/Contents/Developer/usr/bin/../itms/bin/iTMSTransporter
2023-07-26 17:35:29.071 Looking for Transporter at path: /Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter
2023-07-26 17:35:29.071 Looking for Transporter at path: /usr/local/itms/bin/iTMSTransporter
2023-07-26 17:35:29.071 Using default transporter location: /usr/local/itms/bin/iTMSTransporter
2023-07-26 17:35:29.071 iTMSTransporter is not available. Using REST APIs.
2023-07-26 17:35:30.184 
=======================
WEB SERVICE REQUEST 'generateAppleConnectToken'
           URL: https://contentdelivery.itunes.apple.com/WebObjects/MZLabelService.woa/json/MZITunesSoftwareService
       timeout: 1800
        method: POST
   httpHeaders: {
    "Content-Length" = 510;
    "Content-Type" = "application/json";
    "x-request-id" = "20230726173530-208";
    "x-tx-client-name" = altool;
    "x-tx-client-version" = "6.315 (14315)";
    "x-tx-method" = generateAppleConnectToken;
}
      httpBody: {
    id = "20230726173530-208";
    jsonrpc = "2.0";
    method = generateAppleConnectToken;
    params =     {
        Application = altool;
        ApplicationBundleId = "com.apple.itunes.altool";
        FrameworkVersions =         {
            "com.apple.itunes.connect.ITunesConnectFoundation" = "6.315 (14315)";
            "com.apple.itunes.connect.ITunesConnectFoundationExtras" = "6.315 (14315)";
            "com.apple.itunes.connect.ITunesPackage" = "6.315 (14315)";
        };
        OSIdentifier = "Mac OS X 13.0.0 (arm64)";
        Password = **hidden value**;
        Username = "test.com";
        Version = "6.315 (14315)";
    };
}
=======================
2023-07-26 17:35:31.175 
=======================
WEB SERVICE RESPONSE (generateAppleConnectToken):
 status code: 200 (no error)
   MIME/TYPE: application/json
 httpHeaders: {
    "Accept-Language" = "en-GB,en;q=0.9";
    "Cache-Control" = "private, no-cache, no-store, must-revalidate, max-age=0";
    "Content-Encoding" = gzip;
    "Content-Length" = 281;
    "Content-Type" = "application/json";
    Date = "Wed, 26 Jul 2023 12:33:46 GMT";
    Expires = "Tue, 18-Jul-2023 23:32:42 GMT";
    Pragma = "no-cache";
    Server = "daiquiri/3.0.0";
    "Strict-Transport-Security" = "max-age=31536000; includeSubDomains";
    "apple-originating-system" = MZContentDeliveryProducer;
    "apple-seq" = "0.0";
    "apple-timing-app" = "111 ms";
    "apple-tk" = false;
    b3 = "b51838aeb440546fc0becaaf683483d3-7fc0bcdaa03f7384";
    "x-apple-application-instance" = 240813;
    "x-apple-application-site" = MR22;
    "x-apple-jingle-correlation-key" = WUMDRLVUIBKG7QF6ZKXWQNED2M;
    "x-apple-request-uuid" = "b51838ae-b440-546f-c0be-caaf683483d3";
    "x-b3-spanid" = 7fc0bcdaa03f7384;
    "x-b3-traceid" = b51838aeb440546fc0becaaf683483d3;
    "x-daiquiri-instance" = "daiquiri:13624002:mr85p00it-hyhk03094901:7987:23RELEASE105:daiquiri-amp-processing-shared-int-001-mr, daiquiri:18493001:mr85p00it-hyhk03154801:7987:23RELEASE105:daiquiri-amp-all-shared-ext-001-mr";
    "x-json-content-length" = 700;
    "x-request-through-daiquiri-producer" = "mr-internal";
    "x-responding-instance" = "MZContentDeliveryProducer:240813:::";
    "x-webobjects-loadaverage" = 0;
}
    httpBody: {"result":{"Errors":["Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)"],"EnableJWTForAllCalls":false,"RestartClient":false,"ErrorCode":-22938,"ErrorMessage":"Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)","ShouldUseRESTAPIs":false,"Success":false},"id":"20230726173530-208","jsonrpc":"2.0","error":{"message":"Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)","code":-22938}}
=======================
2023-07-26 17:35:31.177 Web service call (generateAppleConnectToken) result: {
    EnableJWTForAllCalls = 0;
    ErrorCode = "-22938";
    ErrorMessage = "Sign in with the app-specific password you generated. If you forgot the app-spec\U2026";
    Errors =     (
        "Sign in with the app-specific password you generated. If you forgot the app-spec\U2026"
    );
    RestartClient = 0;
    ShouldUseRESTAPIs = 0;
    Success = 0;
}
2023-07-26 17:35:31.184 {
    EnableJWTForAllCalls = 0;
    ErrorCode = "-22938";
    ErrorMessage = "Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)";
    Errors =     (
        "Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)"
    );
    RestartClient = 0;
    ShouldUseRESTAPIs = 0;
    Success = 0;
}
2023-07-26 17:35:31.185 Non-localized server string received: 'Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com'.
2023-07-26 17:35:31.186 Non-localized server string received: 'Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com'.
2023-07-26 17:35:31.323 *** Error: Error uploading 'ios/Aqaar.ipa'.
2023-07-26 17:35:31.323 *** Error: Unable to upload archive. Failed to get authorization for username 'test.com' and password. (
    "Error Domain=ITunesConnectionOperationErrorDomain Code=-19000 \"Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com\" UserInfo={NSLocalizedRecoverySuggestion=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedDescription=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedFailureReason=App Store operation failed.}"
) (-1011)
 {
    NSLocalizedDescription = "Unable to upload archive.";
    NSLocalizedFailureReason = "Failed to get authorization for username 'test.com' and password. (\n    \"Error Domain=ITunesConnectionOperationErrorDomain Code=-19000 \\\"Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com\\\" UserInfo={NSLocalizedRecoverySuggestion=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedDescription=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedFailureReason=App Store operation failed.}\"\n)";
}
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit status 1

我还通过从 xcode 导出构建在本地尝试过,并尝试通过此命令将 ipa 推送到试飞,并在该命令中提供了用户名和密码。
喜欢这个:

    xcrun altool --upload-app -f test.ipa -u test.com -p abctest123

它向我抛出这个错误:

        2023-07-26 18:22:26.972 *** Error: Error uploading 'test.ipa'.
        2023-07-26 18:22:26.974 *** Error: Unable to upload archive. Failed to get authorization for username 'test.com' and password. (
            "Error Domain=ITunesConnectionOperationErrorDomain Code=-19000 \"Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com\" UserInfo={NSLocalizedRecoverySuggestion=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedDescription=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedFailureReason=App Store operation failed.}"
        ) (-1011)
        {
            NSLocalizedDescription = "Unable to upload archive.";
            NSLocalizedFailureReason = "Failed to get authorization for username 'test.com' and password. (\n    \"Error Domain=ITunesConnectionOperationErrorDomain Code=-19000 \\\"Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com\\\" UserInfo={NSLocalizedRecoverySuggestion=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedDescription=Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com, NSLocalizedFailureReason=App Store operation failed.}\"\n)";
        }

我已经通过此过程创建了应用程序专用密码:
转到 https://appleid.apple.com/account/manage,然后在“安全”部分中,单击“应用程序专用密码”并创建一个新密码。
此外,在帐户中启用了双因素身份验证。

我需要帮助来理解为什么它不授权。

我正在尝试上传 ipa,但显示上述错误。

iOS DevOps XCrun 苹果开发者帐户

评论


答: 暂无答案