fastlane: App Store Connect transporter transfer failed
Issue Description
Not able to upload ipa on Testflight
Command executed
pilot(api_key: api_key,
distribute_external: true,
skip_submission: false,
notify_external_testers: true,
skip_waiting_for_build_processing: true,
groups: ["HelloWorld Beta Testers"], # Maybe we should create groups
changelog: File.read("test flight-notes.txt")
)
Complete output when running fastlane, including the stack trace and command used
[06:19:27]: Transporter transfer failed. [06:19:27]: [06:19:29]: [iTMSTransporter] data: null [06:19:29]: [iTMSTransporter] } [06:19:29]: [iTMSTransporter] buildAssetSpi: class BuildRelationshipsBuildAssetDescription { [06:19:29]: [iTMSTransporter] links: class AppAvailabilityRelationshipsAppLinks { [06:19:29]: [iTMSTransporter] self: https://contentdelivery.itunes.apple.com/MZContentDeliveryService/iris/v1/builds/4f97da9e-7ed2-4079-8ca3-474ae4e966e4/relationships/buildAssetSpi [06:19:29]: [iTMSTransporter] related: https://contentdelivery.itunes.apple.com/MZContentDeliveryService/iris/v1/builds/4f97da9e-7ed2-4079-8ca3-474ae4e966e4/buildAssetSpi [06:19:29]: [iTMSTransporter] } [06:19:29]: [iTMSTransporter] data: null [06:19:29]: [iTMSTransporter] } [06:19:29]: [iTMSTransporter] } [06:19:29]: [iTMSTransporter] links: class ResourceLinks { [06:19:29]: [iTMSTransporter] self: https://contentdelivery.itunes.apple.com/MZContentDeliveryService/iris/v1/builds/4f97da9e-7ed2-4079-8ca3-474ae4e966e4 [06:19:29]: [iTMSTransporter] } [06:19:29]: [iTMSTransporter] } [06:19:29]: [iTMSTransporter] [2022-11-20 06:19:27 PST] <main> DBG-X: Returning 1 [06:19:29]: iTunes Transporter output above ^ [06:19:29]: Upload is not in processing state, please try again. state: class Build { Return status of iTunes Transporter was 1: Upload is not in processing state, please try again. state: class Build { The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure. ±--------------------------±--------------------------------------------------------------------------------------------------------+ | Lane Context | ±--------------------------±--------------------------------------------------------------------------------------------------------+ | ENVIRONMENT | UAT | | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios deploy | | SIGH_PROFILE_PATHS | | | DSYM_PATHS | | | DSYM_LATEST_UPLOADED_DATE | | | IPA_OUTPUT_PATH | /Users/administrator/builds/VwgkdXBG/0/xxx/xxx/XXX.ipa | | XCODEBUILD_ARCHIVE | /Users/administrator/Library/Developer/Xcode/Archives/2022-11-20/XXX 2022-11-20 06.07.12.xcarchive | | DSYM_OUTPUT_PATH | /Users/administrator/builds/VwgkdXBG/0/xxx/xxx/XXX.app.dSYM.zip | ±--------------------------±--------------------------------------------------------------------------------------------------------+ [06:19:29]: Error uploading ipa file:
±-----±--------------------------±------------+ | fastlane summary | ±-----±--------------------------±------------+ | Step | Action | Time (in s) | ±-----±--------------------------±------------+ | 1 | default_platform | 0 | | 2 | clear_derived_data | 1 | | 3 | clean_build_artifacts | 0 | | 4 | cocoapods | 18 | | 5 | gym | 671 | | 6 | app_store_connect_api_key | 0 | | 💥 | pilot | 77 | ±-----±--------------------------±------------+ [06:19:29]: fastlane finished with errors [!] Error uploading ipa file:
Environment
🚫 fastlane environment 🚫
Stack
Key | Value |
---|---|
OS | 12.3 |
Ruby | 2.6.8 |
Bundler? | false |
Git | git version 2.32.1 (Apple Git-133) |
Installation Source | /usr/local/bin/fastlane |
Host | macOS 12.3 (21E230) |
Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib |
OpenSSL Version | LibreSSL 2.8.3 |
Is contained | false |
Is homebrew | false |
Is installed via Fabric.app | false |
Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
Xcode Version | 13.4.1 |
Swift Version | 5.6.1 |
System Locale
Error |
---|
No Locale with UTF8 found 🚫 |
fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
fastlane_require 'dotenv'
before_all do
Dotenv.overload '.env.secret'
puts Dotenv.overload
end
default_platform(:ios)
platform :ios do
desc "Build Application"
lane :build do
clear_derived_data
clean_build_artifacts
cocoapods(use_bundle_exec: false)
# xcodebuild(workspace: "XXX.xcworkspace",scheme: ENV['SCHEME'],xcargs: "-destination generic/platform=iOS")
gym(scheme: ENV['SCHEME'], skip_archive: true)
end
lane :deploy do
clear_derived_data
clean_build_artifacts
cocoapods(use_bundle_exec: false, repo_update: true)
gym(scheme: ENV['SCHEME'], export_xcargs: "-allowProvisioningUpdates")
ENV['ITMSTRANSPORTER_FORCE_ITMS_PACKAGE_UPLOAD'] = 'true' if ENV['FL_XCODE_VERSION'] && ENV['FL_XCODE_VERSION'].include?(' 13.')
api_key = app_store_connect_api_key(
key_id: ENV['KEY'],
issuer_id: ENV['ISSUE'],
key_filepath: "XXX.p8",
duration: 1200, # optional (maximum 1200)
in_house: false # optional but may be required if using match/sigh
)
pilot(api_key: api_key,
distribute_external: true,
skip_submission: false,
notify_external_testers: true,
skip_waiting_for_build_processing: true,
groups: ["HelloWorld Beta Testers"], # Maybe we should create groups
changelog: File.read("testflight-notes.txt")
)
# push_to_git_remote(remote_branch: ENV['BRANCH'])
upload_symbols_to_crashlytics
end
lane :versioning do
api_key = app_store_connect_api_key(
key_id: ENV['KEY'],
issuer_id: ENV['ISSUE'],
key_filepath: "XXX.p8"
)
testflight_build_number = latest_testflight_build_number(
api_key: api_key,
team_id: ENV['TEAM_ID'],
app_identifier: ENV['BUNDLE_ID']
)
increment_build_number({
build_number: testflight_build_number + 1
})
build_number = Actions.lane_context[Actions::SharedValues::BUILD_NUMBER]
version_number = get_version_number(xcodeproj: "./XXX.xcodeproj")
commit_version_bump(
message: "Published-Build:#{build_number}-Version:#{version_number}-Environment:#{ENV['SCHEME']}",
force: true,
xcodeproj: "./XXX.xcodeproj" # optional, if you have multiple Xcode project files, you must specify your main project here
)
# add_git_tag(tag: "testflight-#{build_number}-#{ENV['TAG']}")
end
lane :commit do |options|
puts options[:branch]
push_to_git_remote(
remote: "origin",
local_branch: "HEAD",
tags: false,
remote_branch: options[:branch]
)
end
lane :archive do |options|
clear_derived_data
clean_build_artifacts
cocoapods(use_bundle_exec: false)
gym(scheme: ENV['SCHEME'], export_xcargs: "-allowProvisioningUpdates")
end
lane :view_version do
version_number = get_version_number(xcodeproj: "./XXX.xcodeproj")
build_number = get_build_number(xcodeproj: "./XXX.xcodeproj")
UI.success "Version query result --> #{version_number}:#{build_number}"
end
lane :inc_version do
increment_version_number
end
end
`./fastlane/Appfile`
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
# apple_id("[[APPLE_ID]]") # Your Apple email address
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.211.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem | Version |
---|---|
did_you_mean | 1.3.0 |
atomos | 0.1.3 |
claide | 1.1.0 |
colored2 | 3.1.2 |
nanaimo | 0.3.0 |
rexml | 3.2.5 |
xcodeproj | 1.22.0 |
rouge | 2.0.7 |
xcpretty | 0.3.0 |
terminal-notifier | 2.0.0 |
unicode-display_width | 1.8.0 |
terminal-table | 1.8.0 |
plist | 3.6.0 |
public_suffix | 4.0.7 |
addressable | 2.8.1 |
multipart-post | 2.0.0 |
word_wrap | 1.0.0 |
optparse | 0.1.1 |
tty-screen | 0.8.1 |
tty-cursor | 0.7.1 |
tty-spinner | 0.9.3 |
artifactory | 3.0.15 |
babosa | 1.0.4 |
colored | 1.2 |
highline | 2.0.3 |
commander | 4.6.0 |
excon | 0.94.0 |
faraday-em_http | 1.0.0 |
faraday-em_synchrony | 1.0.0 |
faraday-excon | 1.1.0 |
faraday-httpclient | 1.0.1 |
faraday-multipart | 1.0.4 |
faraday-net_http | 1.0.1 |
faraday-net_http_persistent | 1.2.0 |
faraday-patron | 1.0.0 |
faraday-rack | 1.0.0 |
faraday-retry | 1.0.3 |
ruby2_keywords | 0.0.5 |
faraday | 1.10.2 |
unf_ext | 0.0.8.2 |
unf | 0.1.4 |
domain_name | 0.5.20190701 |
http-cookie | 1.0.5 |
faraday-cookie_jar | 0.0.7 |
faraday_middleware | 1.2.0 |
fastimage | 2.2.6 |
gh_inspector | 1.1.3 |
mini_magick | 4.11.0 |
naturally | 2.2.1 |
rubyzip | 2.3.2 |
security | 0.1.3 |
xcpretty-travis-formatter | 1.0.1 |
dotenv | 2.8.1 |
bundler | 1.17.2 |
simctl | 1.6.8 |
jwt | 2.5.0 |
uber | 0.1.0 |
declarative | 0.0.20 |
trailblazer-option | 0.1.2 |
representable | 3.2.0 |
retriable | 3.1.2 |
mini_mime | 1.1.2 |
memoist | 0.16.2 |
multi_json | 1.15.0 |
os | 1.1.4 |
signet | 0.17.0 |
googleauth | 1.3.0 |
httpclient | 2.8.3 |
google-apis-core | 0.9.1 |
google-apis-playcustomapp_v1 | 0.12.0 |
google-apis-androidpublisher_v3 | 0.31.0 |
google-cloud-env | 1.6.0 |
google-cloud-errors | 1.3.0 |
google-cloud-core | 1.6.0 |
google-apis-iamcredentials_v1 | 0.16.0 |
google-apis-storage_v1 | 0.19.0 |
digest-crc | 0.6.4 |
google-cloud-storage | 1.44.0 |
emoji_regex | 3.2.3 |
jmespath | 1.6.1 |
aws-partitions | 1.664.0 |
aws-eventstream | 1.2.0 |
aws-sigv4 | 1.5.2 |
aws-sdk-core | 3.168.1 |
aws-sdk-kms | 1.59.0 |
aws-sdk-s3 | 1.117.1 |
CFPropertyList | 3.0.5 |
json | 2.6.2 |
webrick | 1.7.0 |
rake | 13.0.6 |
forwardable | 1.2.0 |
logger | 1.3.0 |
date | 2.0.0 |
stringio | 0.0.2 |
ipaddr | 1.2.2 |
openssl | 2.1.2 |
zlib | 1.0.0 |
mutex_m | 0.1.0 |
ostruct | 0.1.0 |
strscan | 1.0.0 |
io-console | 0.4.7 |
fileutils | 1.1.0 |
etc | 1.0.1 |
libxml-ruby | 3.2.1 |
psych | 3.1.0 |
generated on: 2022-11-20
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 13
- Comments: 38
For anyone experiencing this issue on Azure DevOps, I solved this by changing the Release Pipeline agent specification from
macOS-latest
, which currently is still an alias formacOS-11
, tomacOS-12
.The
macOS-12
spec uses Xcode 14 instead of Xcode 13. In turn, fastlane usesaltool
(instead ofiTMSTransporter
) by default for Xcode 14.altool
did upload successfully.I’m facing the same issue right now
Getting also today
Thanks for sharing. Changing to
macOS-12
worked for me.I have the same problem.
From what I can see, iTMSTransporter is failing, but the output (
iTunes Transporter output above ^
) is limited to 15 lines, so we can’t see that went wrong. The same happens invoking fastlane with--verbose
. I suggest the iTMSTransporter output should not be limited in verbose mode.providing both
team_id
anditc_provider
resolved the issue for me.team_id: you can grab here if you’re logged into your dev account (under
data.associatedAccounts[n].contentProvider.contentProviderId
)itc_provider: your team ID for your apple account, you can find in developer.apple.com portal
(Xcode 13.3)