传送器错误 "An error occurred while trying to call the requested method validateAssets. (1272)"
Transporter error "An error occurred while trying to call the requested method validateAssets. (1272)"
我在尝试使用 fastlane 脚本上传到 TestFlight 时遇到此错误。
[2021-11-03T17:54:53.268Z] ERROR [2021-11-03 13:54:52.87]: �[31mTransporter transfer failed.�[0m
[2021-11-03T17:54:53.268Z] WARN [2021-11-03 13:54:52.87]:
[2021-11-03T17:54:53.268Z] ERROR [2021-11-03 13:54:52.87]: �[31mAn error occurred while trying to call the requested method validateAssets. (1272)
�[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.23]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: parameter ErrorMessage = An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: parameter ShouldUseRESTAPIs = false
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: parameter Success = false
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] ERROR: An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: The error code is: 1272
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] INFO: Done performing authentication.
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] Package Summary:
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] 1 package(s) were not uploaded because they had problems:
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] /var/folders/ym/dgt7pnss2rvblfnggshs_q480000gp/T/d20211103-56747-osueyi/1520720139-6a162c39-f397-454e-8bca-48c15aac2845.itmsp - Error Messages:
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: Returning 1
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] INFO [2021-11-03 13:54:53.24]: iTunes Transporter output above ^
[2021-11-03T17:54:53.626Z] ERROR [2021-11-03 13:54:53.24]: �[31mAn error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.626Z] Return status of iTunes Transporter was 1: An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.626Z] The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.�[0m
我的快车道脚本是:
desc "Push a new beta build to TestFlight"
lane :beta do |options|
build_app(workspace: "MyApp.xcworkspace", scheme: "MyApp")
upload_to_testflight(
skip_waiting_for_build_processing: true
)
end
它按预期工作。但随后它开始抛出错误。我没有改变任何东西。它自己坏了。
注意:我用的是最新版的fastlane-2.197.0.
感谢Andrew. He has a solution and explained the issue here。我按照以下步骤配置了 fastlane,它又开始工作了。
在fastlane的安装文件夹里,我的是usr/local/Cellar/fastlane/2.197.0/libexec/gems/fastlane-2.197.0
,修改了fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb
的第36行
发件人:
return self.package_path
收件人:
return ipa_path
和
fastlane_core/lib/fastlane_core/itunes_transporter.rb
的第264行
发件人:
"-f #{source.shellescape}",
收件人:
"-assetFile #{source.shellescape}",
请注意:行号可能会随着您的 fastlane 版本而改变,并且当您更新 fastlane 时它会消失。
我在尝试使用 fastlane 脚本上传到 TestFlight 时遇到此错误。
[2021-11-03T17:54:53.268Z] ERROR [2021-11-03 13:54:52.87]: �[31mTransporter transfer failed.�[0m
[2021-11-03T17:54:53.268Z] WARN [2021-11-03 13:54:52.87]:
[2021-11-03T17:54:53.268Z] ERROR [2021-11-03 13:54:52.87]: �[31mAn error occurred while trying to call the requested method validateAssets. (1272)
�[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.23]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: parameter ErrorMessage = An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: parameter ShouldUseRESTAPIs = false
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: parameter Success = false
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] ERROR: An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: The error code is: 1272
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] INFO: Done performing authentication.
[2021-11-03T17:54:53.625Z] �[0m
[2021-11-03T17:54:53.625Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] Package Summary:
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter]
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] 1 package(s) were not uploaded because they had problems:
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] /var/folders/ym/dgt7pnss2rvblfnggshs_q480000gp/T/d20211103-56747-osueyi/1520720139-6a162c39-f397-454e-8bca-48c15aac2845.itmsp - Error Messages:
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] WARN [2021-11-03 13:54:53.24]: �[33m[iTMSTransporter] [2021-11-03 13:54:52 EDT] DBG-X: Returning 1
[2021-11-03T17:54:53.626Z] �[0m
[2021-11-03T17:54:53.626Z] INFO [2021-11-03 13:54:53.24]: iTunes Transporter output above ^
[2021-11-03T17:54:53.626Z] ERROR [2021-11-03 13:54:53.24]: �[31mAn error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.626Z] Return status of iTunes Transporter was 1: An error occurred while trying to call the requested method validateAssets. (1272)
[2021-11-03T17:54:53.626Z] The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.�[0m
我的快车道脚本是:
desc "Push a new beta build to TestFlight"
lane :beta do |options|
build_app(workspace: "MyApp.xcworkspace", scheme: "MyApp")
upload_to_testflight(
skip_waiting_for_build_processing: true
)
end
它按预期工作。但随后它开始抛出错误。我没有改变任何东西。它自己坏了。
注意:我用的是最新版的fastlane-2.197.0.
感谢Andrew. He has a solution and explained the issue here。我按照以下步骤配置了 fastlane,它又开始工作了。
在fastlane的安装文件夹里,我的是usr/local/Cellar/fastlane/2.197.0/libexec/gems/fastlane-2.197.0
,修改了fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb
发件人:
return self.package_path
收件人:
return ipa_path
和
fastlane_core/lib/fastlane_core/itunes_transporter.rb
发件人:
"-f #{source.shellescape}",
收件人:
"-assetFile #{source.shellescape}",
请注意:行号可能会随着您的 fastlane 版本而改变,并且当您更新 fastlane 时它会消失。