Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distribute breaks when updating from 2.212.1 to 2.212.2 - undefined method 'size' for Spaceship::ConnectAPI::Platform:Module #21207

Closed
4 tasks done
tsimbalar opened this issue Apr 17, 2023 · 7 comments · Fixed by #21212 or GaloyMoney/blink-mobile#2122

Comments

@tsimbalar
Copy link

New Regression Checklist

Regression Information

  • Breaking version: 2.212.2
  • Last working version: 2.212.1

Regression Description

distribute starts failing with error :

`distribute': \e[31m[!] undefined method `size' for Spaceship::ConnectAPI::Platform:Module\e[0m (NoMethodError)

See also comments in #21087 (comment)

Complete output when running fastlane, including the stack trace and command used
[13:01:20]: Loading from './fastlane/.env.ios'
+---------------------------+---------+---------------------------------------------------------------------------+
|                                                  Used plugins                                                   |
+---------------------------+---------+---------------------------------------------------------------------------+
| Plugin                    | Version | Action                                                                    |
+---------------------------+---------+---------------------------------------------------------------------------+
| fastlane-plugin-appcenter | 1.11.1  | appcenter_fetch_devices, appcenter_fetch_version_number, appcenter_upload |
+---------------------------+---------+---------------------------------------------------------------------------+

[13:01:20]: Sending anonymous analytics information
[13:01:20]: Learn more at https://docs.fastlane.tools/#metrics
[13:01:20]: No personal or sensitive data is sent.
[13:01:20]: You can disable this by adding opt_out_usage at the top of your Fastfile
[13:01:20]: -----------------------------
[13:01:20]: --- Step: update_fastlane ---
[13:01:20]: -----------------------------
[13:01:20]: Looking for updates for fastlane...
[13:01:23]: Nothing to update ✅
[13:01:23]: ------------------------------
[13:01:23]: --- Step: default_platform ---
[13:01:23]: ------------------------------
[13:01:23]: Driving the lane 'ios distribute' 🚀
[13:01:23]: ---------------------------------------
[13:01:23]: --- Step: app_store_connect_api_key ---
[13:01:23]: ---------------------------------------
[13:01:23]: --------------------------------------------
[13:01:23]: --- Step: latest_testflight_build_number ---
[13:01:23]: --------------------------------------------
[13:01:23]: Creating authorization token for App Store Connect API
[13:01:24]: Fetching the latest build number for version 6.23.4
[13:01:24]: Latest upload for version 6.23.4 on ios platform is build: 5063951.0
[13:01:24]: ----------------------------------
[13:01:24]: --- Step: upload_to_testflight ---
[13:01:24]: ----------------------------------
[13:01:24]: Creating authorization token for App Store Connect API
[13:01:25]: Waiting for processing on... app_id: XXXXXX, app_version: 6.23.4, build_version: 5063951.0, platform: IOS
[13:01:26]: Successfully finished processing the build 6.23.4 - 5063951.0 for IOS
[13:01:26]: -------------------
[13:01:26]: --- Step: is_ci ---
[13:01:26]: -------------------
[13:01:26]: -------------------
[13:01:26]: --- Step: slack ---
[13:01:26]: -------------------
[13:01:26]: Successfully sent Slack notification
[13:01:26]: An error occurred while executing the error block:
[13:01:26]: undefined method `size' for Spaceship::ConnectAPI::Platform:Module
+--------------------------------+----------------+
| Lane Context |
+--------------------------------+----------------+
| ENVIRONMENT | ios |
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios distribute |
| LATEST_TESTFLIGHT_BUILD_NUMBER | 5063951.0 |
| LATEST_TESTFLIGHT_VERSION | 6.23.4 |
+--------------------------------+----------------+

+------+--------------------------------+-------------+
| fastlane summary |
+------+--------------------------------+-------------+
| Step | Action | Time (in s) |
+------+--------------------------------+-------------+
| 1 | update_fastlane | 2 |
| 2 | default_platform | 0 |
| 3 | app_store_connect_api_key | 0 |
| 4 | latest_testflight_build_number | 1 |
| 💥 | upload_to_testflight | 1 |
| 6 | is_ci | 0 |
| 7 | slack | 0 |
+------+--------------------------------+-------------+

+-----------+--------------+----------------+
| Plugin updates available |
+-----------+--------------+----------------+
| Plugin | Your Version | Latest Version |
+-----------+--------------+----------------+
| appcenter | 1.11.1 | 2.1.0 |
+-----------+--------------+----------------+
[13:01:26]: To update all plugins, just run
[13:01:26]: $ bundle exec fastlane update_plugins

[13:01:26]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run fastlane env to append the fastlane environment to your issue
bundler: failed to load command: fastlane (/Users/builder/.rbenv/versions/3.0.4/bin/fastlane)
/Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/pilot/lib/pilot/build_manager.rb:160:in distribute': \e[31m[!] undefined method size' for Spaceship::ConnectAPI::Platform:Module\e[0m (NoMethodError)
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/actions/upload_to_testflight.rb:32:in run' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:263:in block (2 levels) in execute_action'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/actions/actions_helper.rb:69:in execute_action' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:255:in block in execute_action'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:229:in chdir' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:229:in execute_action'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/fast_file.rb:159:in method_missing'
from Fastfile:173:in distribute_testflight' from Fastfile:15:in block (2 levels) in parsing_binding'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/lane.rb:33:in call' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:49:in block in execute'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:45:in chdir' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/runner.rb:45:in execute'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/lane_manager.rb:47:in cruise_lane' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/command_line_handler.rb:36:in handle'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/commands_generator.rb:110:in block (2 levels) in run' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/commands_generator.rb:354:in run' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/commands_generator.rb:43:in start'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in take_off' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/fastlane-2.212.2/bin/fastlane:23:in <top (required)>'
from /Users/builder/.rbenv/versions/3.0.4/bin/fastlane:25:in load' from /Users/builder/.rbenv/versions/3.0.4/bin/fastlane:25:in <top (required)>'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli/exec.rb:58:in load' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli/exec.rb:58:in kernel_load'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli/exec.rb:23:in run' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:492:in exec'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in run' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in dispatch' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:34:in dispatch'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in start' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:28:in start'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/bundler-2.4.8/exe/bundle:45:in block in <top (required)>' from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/site_ruby/3.0.0/bundler/friendly_errors.rb:117:in with_friendly_errors'
from /Users/builder/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/bundler-2.4.8/exe/bundle:33:in <top (required)>' from /Users/builder/.rbenv/versions/3.0.4/bin/bundle:25:in load'
from /Users/builder/.rbenv/versions/3.0.4/bin/bundle:25:in `

'

@fastlane-bot
Copy link

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

@tsimbalar tsimbalar changed the title distribute breaks when updating from 2.212.1 to 2.212.2 distribute breaks when updating from 2.212.1 to 2.212.2 - undefined method size' for Spaceship::ConnectAPI::Platform:Module` Apr 17, 2023
@tsimbalar tsimbalar changed the title distribute breaks when updating from 2.212.1 to 2.212.2 - undefined method size' for Spaceship::ConnectAPI::Platform:Module` distribute breaks when updating from 2.212.1 to 2.212.2 - undefined method 'size' for Spaceship::ConnectAPI::Platform:Module Apr 17, 2023
@tsimbalar
Copy link
Author

Based on the fastlane gem doc, there doesn't seem to be a Platform.size 🤔

rubydoc.info/gems/fastlane/Spaceship/ConnectAPI/Platform

@eric
Copy link
Contributor

eric commented Apr 17, 2023

It does appear it should be Platform::ALL.size. Not sure how this worked for me previously.

@Baza207
Copy link

Baza207 commented Apr 28, 2023

@eric Any news on when this might be merged and available in a new release? 🙂

@ainame
Copy link
Contributor

ainame commented Apr 28, 2023

The fix will be released on next version but no ETA on the release date yet🙏

@smikheiev
Copy link

The fix will be released on next version but no ETA on the release date yet🙏

@ainame still no ETA on the release date for this fix?

@ainame
Copy link
Contributor

ainame commented May 23, 2023

@smikheiev There's another work to fix WWDR certificate issues that are planned to be released soon, so this change will be automatically included🙏 I can't tell the date as I don't manage releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants