xcode Fastlane upload_to_testflight对iTM传输器的调用已完成,但退出状态为非零:1.表示故障

qv7cva1a  于 2022-11-18  发布在  其他
关注(0)|答案(2)|浏览(157)

我试图运行快速通道上传到应用程序商店,但我面临一些问题。
下面是我的快车道环境:

### Stack

| Key                         | Value                                       |
| --------------------------- | ------------------------------------------- |
| OS                          | 10.15.6                                     |
| Ruby                        | 2.7.2                                       |
| Bundler?                    | false                                       |
| Git                         | git version 2.24.3 (Apple Git-128)          |
| Installation Source         | ~/.rvm/gems/ruby-2.7.2/bin/fastlane         |
| Host                        | Mac OS X 10.15.6 (19G73)                    |
| Ruby Lib Dir                | ~/.rvm/rubies/ruby-2.7.2/lib                |
| OpenSSL Version             | OpenSSL 1.1.1i  8 Dec 2020                  |
| Is contained                | false                                       |
| Is homebrew                 | false                                       |
| Is installed via Fabric.app | false                                       |
| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version               | 12.3                                        |

### System Locale

| Error                       |
| --------------------------- |
| No Locale with UTF8 found 🚫 |

### fastlane files:

**No Fastfile found**

**No Appfile found**

### fastlane gems

| Gem      | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.173.0 | ✅ Up-To-Date

下面是我运行的命令
fastlane upload_to_testflight_beta
以下是命令输出:

WARN [2021-02-05 15:38:39.87]: [iTMSTransporter] java.lang.reflect.InvocationTargetException

WARN [2021-02-05 15:38:39.87]: [iTMSTransporter]    ... 6 more

INFO [2021-02-05 15:38:39.87]: iTunes Transporter output above ^
ERROR [2021-02-05 15:38:39.87]: The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
WARN [2021-02-05 15:38:40.03]: Lane Context:
INFO [2021-02-05 15:38:40.03]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios upload_to_testflight_beta", :SIGH_PROFILE_TYPE=>"app-store", :MATCH_PROVISIONING_PROFILE_MAPPING=>{"com.xxx.XManagement.ios"=>"match AppStore com.xxx.XManagement.ios 1612510700"}}
ERROR [2021-02-05 15:38:40.03]: Error uploading ipa file, for more information see above
INFO [2021-02-05 15:38:40.03]: Successfully generated documentation at path '/Users/john.devera/code/MOBILE/crew-management-ios/fastlane/README.md'

+------+----------------------+-------------+
|             fastlane summary              |
+------+----------------------+-------------+
| Step | Action               | Time (in s) |
+------+----------------------+-------------+
| 1    | update_fastlane      | 2           |
| 2    | default_platform     | 0           |
| 3    | match                | 20          |
| 💥   | upload_to_testflight | 14          |
+------+----------------------+-------------+

ERROR [2021-02-05 15:38:40.06]: fastlane finished with errors
Traceback (most recent call last):
    29: from /Users/john.devera/.rvm/gems/ruby-2.7.2/bin/fastlane:23:in `<main>'

如果有人能帮我。
我是iOS开发新手,我正在使用Swift和Fastlane开发我的应用程序。
谢谢

9cbw7uwe

9cbw7uwe1#

解决了。问题是我连接到了一个网络,这个网络有一些防火墙,在部署时似乎阻止了与itmstransporter相关的东西。

yvt65v4c

yvt65v4c2#

如果使用ENV值,则可以解决此问题。
这些例子
Fastfile

ENV['ITMSTRANSPORTER_FORCE_ITMS_PACKAGE_UPLOAD'] = 'true'
...


shell

export ITMSTRANSPORTER_FORCE_ITMS_PACKAGE_UPLOAD=true && bundle exec fastlane ios upload_test_flight

相关问题