fastlane: 'FastlaneCore::AltoolTransporterExecutor#execute': undefined method 'each' for nil (NoMethodError)
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
We’ve got a lane that’s been working for a couple of months. Yesterday, it started failing with
/opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:266:in ‘FastlaneCore::AltoolTransporterExecutor#execute’: undefined method ‘each’ for nil (NoMethodError)
which points to https://github.com/fastlane/fastlane/blob/caaddf451ff6aa5ea94e915d723d591c416ed611/fastlane_core/lib/fastlane_core/itunes_transporter.rb#L266
Command executed
upload_to_testflight(
skip_waiting_for_build_processing: true,
)
which successfully executes and uploads the build
[12:08:33]: Successfully exported and compressed dSYM file
[12:08:33]: Successfully exported and signed the ipa file:
[12:08:33]: /Users/your_mom/Library/com.circleci.runner/your_mom/ios/your_mom.ipa
[12:08:33]: ----------------------------------
[12:08:33]: --- Step: upload_to_testflight ---
[12:08:33]: ----------------------------------
[12:08:33]: Creating authorization token for App Store Connect API
[12:08:33]: Ready to upload new build to TestFlight (App: your_mom)...
[12:08:34]: Going to upload updated app to App Store Connect
[12:08:34]: This might take a few minutes. Please don't interrupt the script.
only for a failure to be reported at the end
[12:09:05]: Called from Fastfile at line 140
[12:09:05]: ```
[12:09:05]: 138: )
[12:09:05]: 139:
[12:09:05]: => 140: upload_to_testflight(
[12:09:05]: 141: skip_waiting_for_build_processing: true,
[12:09:05]: 142: )
[12:09:05]: ```
+---------------------------------------------------+
| fastlane summary |
+------+------------------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------------------+-------------+
| 1 | opt_out_usage | 0 |
| 2 | default_platform | 0 |
| 3 | setup_circle_ci | 0 |
| 4 | app_store_connect_api_key | 0 |
| 5 | match | 3 |
| 6 | match | 4 |
| 7 | get_version_number | 0 |
| 8 | increment_build_number | 0 |
| 9 | increment_version_number | 0 |
| 10 | update_code_signing_settings | 0 |
| 11 | update_code_signing_settings | 0 |
| 12 | gym | 810 |
| 💥 | upload_to_testflight | 32 |
+------+------------------------------+-------------+
[12:09:05]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ undefined method `size' for nil:NilClass
https://github.com/fastlane/fastlane/issues/21530 [open] 9 💬
28 Oct 2024
➡️ fastlane 2.225.0: `random_number': [!] undefined method `<=' for an instance of Range (NoMethodError)
https://github.com/fastlane/fastlane/issues/26682 [open] 10 💬
2 weeks ago
➡️ Android: `track_version_codes': \e[31m[!] undefined method `flat_map' for nil:NilClass (NoMethodError)
https://github.com/fastlane/fastlane/issues/21500 [open] 12 💬
25 Jun 2024
and 252 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%27each%27%20for%20nil&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
/opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:266:in 'FastlaneCore::AltoolTransporterExecutor#execute': [!] undefined method 'each' for nil (NoMethodError)
......
^^^^^
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:794:in 'FastlaneCore::ItunesTransporter#upload'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/pilot/lib/pilot/build_manager.rb:50:in 'Pilot::BuildManager#upload'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/actions/upload_to_testflight.rb:34:in 'Fastlane::Actions::UploadToTestflightAction.run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:263:in 'block (2 levels) in Fastlane::Runner#execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in 'Fastlane::Actions.execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:255:in 'block in Fastlane::Runner#execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:229:in 'Dir.chdir'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:229:in 'Fastlane::Runner#execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:157:in 'Fastlane::Runner#trigger_action_by_name'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/fast_file.rb:159:in 'Fastlane::FastFile#method_missing'
from Fastfile:140:in 'block (2 levels) in Fastlane::FastFile#parsing_binding'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/lane.rb:41:in 'Fastlane::Lane#call'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:49:in 'block in Fastlane::Runner#execute'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:45:in 'Dir.chdir'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:45:in 'Fastlane::Runner#execute'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/lane_manager.rb:46:in 'Fastlane::LaneManager.cruise_lane'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/command_line_handler.rb:34:in 'Fastlane::CommandLineHandler.handle'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/commands_generator.rb:110:in 'block (2 levels) in Fastlane::CommandsGenerator#run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in 'Commander::Command#call'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in 'Commander::Command#run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in 'Commander::Runner#run_active_command'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in 'Commander::Runner#run!'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in 'Commander::Delegates#run!'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/commands_generator.rb:363:in 'Fastlane::CommandsGenerator#run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/commands_generator.rb:43:in 'Fastlane::CommandsGenerator.start'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in 'Fastlane::CLIToolsDistributor.take_off'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/bin/fastlane:23:in '<top (required)>'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/bin/fastlane:25:in 'Kernel#load'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/bin/fastlane:25:in '<main>'
/opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:266:in 'FastlaneCore::AltoolTransporterExecutor#execute': undefined method 'each' for nil (NoMethodError)
......
^^^^^
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:794:in 'FastlaneCore::ItunesTransporter#upload'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/pilot/lib/pilot/build_manager.rb:50:in 'Pilot::BuildManager#upload'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/actions/upload_to_testflight.rb:34:in 'Fastlane::Actions::UploadToTestflightAction.run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:263:in 'block (2 levels) in Fastlane::Runner#execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in 'Fastlane::Actions.execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:255:in 'block in Fastlane::Runner#execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:229:in 'Dir.chdir'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:229:in 'Fastlane::Runner#execute_action'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:157:in 'Fastlane::Runner#trigger_action_by_name'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/fast_file.rb:159:in 'Fastlane::FastFile#method_missing'
from Fastfile:140:in 'block (2 levels) in Fastlane::FastFile#parsing_binding'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/lane.rb:41:in 'Fastlane::Lane#call'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:49:in 'block in Fastlane::Runner#execute'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:45:in 'Dir.chdir'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/runner.rb:45:in 'Fastlane::Runner#execute'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/lane_manager.rb:46:in 'Fastlane::LaneManager.cruise_lane'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/command_line_handler.rb:34:in 'Fastlane::CommandLineHandler.handle'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/commands_generator.rb:110:in 'block (2 levels) in Fastlane::CommandsGenerator#run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in 'Commander::Command#call'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in 'Commander::Command#run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in 'Commander::Runner#run_active_command'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in 'Commander::Runner#run!'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in 'Commander::Delegates#run!'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/commands_generator.rb:363:in 'Fastlane::CommandsGenerator#run'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/commands_generator.rb:43:in 'Fastlane::CommandsGenerator.start'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in 'Fastlane::CLIToolsDistributor.take_off'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/gems/fastlane-2.226.0/bin/fastlane:23:in '<top (required)>'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/bin/fastlane:25:in 'Kernel#load'
from /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/bin/fastlane:25:in '<main>'
Exited with code exit status 1
Complete output when running fastlane, including the stack trace and command used
^^ above
Environment
✅ fastlane environment ✅
Stack
| Key | Value |
|---|---|
| OS | 15.0.1 |
| Ruby | 3.4.1 |
| Bundler? | false |
| Git | git version 2.39.5 (Apple Git-154) |
| Installation Source | /opt/homebrew/Cellar/fastlane/2.226.0_1/libexec/bin/fastlane |
| Host | macOS 15.0.1 (24A348) |
| Ruby Lib Dir | /opt/homebrew/Cellar/ruby/3.4.1/lib |
| OpenSSL Version | OpenSSL 3.4.0 22 Oct 2024 |
| Is contained | false |
| Is homebrew | true |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 16.0 |
| Swift Version | 6.0 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | en_US.UTF-8 | ✅ |
| LANGUAGE |
fastlane files:
No Fastfile found
No Appfile found
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.226.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| error_highlight | 0.7.0 |
| did_you_mean | 2.0.0 |
| syntax_suggest | 2.0.2 |
| public_suffix | 6.0.1 |
| addressable | 2.8.7 |
| artifactory | 3.0.17 |
| jmespath | 1.6.2 |
| aws-partitions | 1.1028.0 |
| aws-eventstream | 1.3.0 |
| aws-sigv4 | 1.10.1 |
| aws-sdk-core | 3.214.0 |
| aws-sdk-kms | 1.96.0 |
| aws-sdk-s3 | 1.176.1 |
| babosa | 1.0.4 |
| bundler | 2.6.2 |
| rexml | 3.4.0 |
| nkf | 0.2.0 |
| base64 | 0.2.0 |
| CFPropertyList | 3.0.7 |
| colored | 1.2 |
| highline | 2.0.3 |
| commander | 4.6.0 |
| dotenv | 2.8.1 |
| emoji_regex | 3.2.3 |
| excon | 0.112.0 |
| faraday-em_http | 1.0.0 |
| faraday-em_synchrony | 1.0.0 |
| faraday-excon | 1.1.0 |
| faraday-httpclient | 1.0.1 |
| multipart-post | 2.4.1 |
| faraday-multipart | 1.1.0 |
| faraday-net_http | 1.0.2 |
| 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.4 |
| faraday_middleware | 1.2.1 |
| domain_name | 0.6.20240107 |
| http-cookie | 1.0.8 |
| faraday-cookie_jar | 0.0.7 |
| fastimage | 2.3.1 |
| sysrandom | 1.0.5 |
| fastlane-sirp | 1.0.0 |
| gh_inspector | 1.1.3 |
| 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.5 |
| jwt | 2.10.0 |
| multi_json | 1.15.0 |
| os | 1.1.4 |
| signet | 0.19.0 |
| googleauth | 1.8.1 |
| httpclient | 2.8.3 |
| google-apis-core | 0.11.3 |
| google-apis-androidpublisher_v3 | 0.54.0 |
| google-apis-playcustomapp_v1 | 0.13.0 |
| google-cloud-env | 1.6.0 |
| google-cloud-errors | 1.4.0 |
| google-cloud-core | 1.7.1 |
| google-apis-iamcredentials_v1 | 0.17.0 |
| google-apis-storage_v1 | 0.31.0 |
| rake | 13.2.1 |
| digest-crc | 0.6.5 |
| google-cloud-storage | 1.47.0 |
| json | 2.9.1 |
| mini_magick | 4.13.2 |
| naturally | 2.2.1 |
| optparse | 0.6.0 |
| plist | 3.7.1 |
| rubyzip | 2.3.2 |
| security | 0.1.5 |
| simctl | 1.6.10 |
| terminal-notifier | 2.0.0 |
| unicode-display_width | 2.6.0 |
| terminal-table | 3.0.2 |
| tty-screen | 0.8.2 |
| tty-cursor | 0.7.1 |
| tty-spinner | 0.9.3 |
| word_wrap | 1.0.0 |
| atomos | 0.1.3 |
| claide | 1.1.0 |
| colored2 | 3.1.2 |
| nanaimo | 0.4.0 |
| xcodeproj | 1.27.0 |
| rouge | 3.28.0 |
| xcpretty | 0.4.0 |
| xcpretty-travis-formatter | 1.0.1 |
| set | 1.1.1 |
| forwardable | 1.3.3 |
| logger | 1.6.4 |
| pathname | 0.4.0 |
| shellwords | 0.2.2 |
| cgi | 0.4.1 |
| date | 3.4.1 |
| timeout | 0.4.3 |
| stringio | 3.1.2 |
| securerandom | 0.4.1 |
| uri | 1.0.2 |
| ipaddr | 1.2.7 |
| openssl | 3.3.0 |
| digest | 3.2.0 |
| io-nonblock | 0.3.1 |
| zlib | 3.2.1 |
| resolv | 0.6.0 |
| io-wait | 0.3.1 |
| time | 0.4.1 |
| open-uri | 0.5.0 |
| mutex_m | 0.3.0 |
| net-http | 0.6.0 |
| net-protocol | 0.2.2 |
| english | 0.8.0 |
| erb | 4.0.4 |
| strscan | 3.1.2 |
| abbrev | 0.1.2 |
| io-console | 0.8.0 |
| tempfile | 0.3.1 |
| delegate | 0.4.0 |
| fileutils | 1.7.3 |
| tmpdir | 0.3.1 |
| singleton | 0.3.0 |
| open3 | 0.2.1 |
| prettyprint | 0.2.0 |
| pp | 0.6.2 |
| find | 0.2.0 |
| ostruct | 0.6.1 |
| yaml | 0.4.0 |
| psych | 5.2.2 |
generated on: 2025-02-04
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 17 (10 by maintainers)
I believe I fixed it in my fork. Will put in a PR after running some tests
Closed via https://github.com/fastlane/fastlane/pull/29545.
Reopening as other folks are also having the issue.
Chiming in to let you guys know that I was having trouble knowing what was wrong with
upload_to_testflightbecause of this bug, derived fromaltoolchange of their format in the cli output, and @TCROC fork helped me find what was wrong by bringing the logs back.@TCROC Hope your PR can be merged ASAP 🤞
Works! Apparently, I needed to create an app-specific password. thanks!
Same problem here
`/opt/homebrew/Cellar/fastlane/2.227.1/libexec/gems/fastlane-2.227.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:266:in ‘FastlaneCore::AltoolTransporterExecutor#execute’: [!] undefined method ‘each’ for nil (NoMethodError)
I also believe one of the causes was that our company is using a Cisco firewall, which has music/torrents blocked and apparently, we could not upload to AppStoreConnect when it was being blocked. Weird stuff.