fastlane: Can't find class 'adhoc' (RuntimeError) when running match 2.110.0

New Issue Checklist

Issue Description

Suddenly began to occur when running in Jenkins. Few hours ago it was fine on the same version. If this is related to Google Cloud API and ruby version, then

  1. why was it working fine previously?
  2. why should I bother of Google Cloud API if I use git as a storage?
Complete output when running fastlane, including the stack trace and command used
[14:29:04]: -------------------
[14:29:04]: --- Step: match ---
[14:29:04]: -------------------
WARNING: You are running Ruby 2.3.1, which is nearing end-of-life.
The Google Cloud API clients work best on supported versions of Ruby. Consider upgrading to Ruby 2.4 or later.
See https://www.ruby-lang.org/en/downloads/branches/ for more info on the Ruby maintenance schedule.
To suppress this message, set the GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS environment variable.

+-----------------------+----------------------------------------------+
|                      Summary for match 2.110.0                       |
+-----------------------+----------------------------------------------+
| git_branch            | master                                       |
| type                  | adhoc                                        |
| app_identifier        | ["[REDACTED]"]       |
| force_for_new_devices | true                                         |
| force                 | true                                         |
| clone_branch_directly | true                                         |
| git_url               | [REDACTED] |
| storage_mode          | git                                          |
| username              | ****                             |
| keychain_name         | ios-build.keychain                           |
| keychain_password     | ********                                     |
| readonly              | false                                        |
| team_id               | ****                                   |
| team_name             | [REDACTED]                   |
| verbose               | false                                        |
| skip_confirmation     | false                                        |
| shallow_clone         | false                                        |
| skip_docs             | false                                        |
| platform              | ios                                          |
+-----------------------+----------------------------------------------+

[14:29:05]: Cloning remote git repo...
[14:29:35]: 🔓  Successfully decrypted certificates repo
[14:29:35]: Verifying that the certificate and profile are still valid on the Dev Portal...
Available session is not valid any more. Continuing with normal login.
[14:29:39]: Installing certificate...
[14:29:39]: There are no local code signing identities found.
You can run `security find-identity -v -p codesigning ios-build.keychain` to get this output.
This Stack Overflow thread has more information: https://stackoverflow.com/q/35390072/774.
(Check in Keychain Access for an expired WWDR certificate: https://stackoverflow.com/a/35409835/774 has more info.)

+-------------------+--------------------------------------------------------------+
|                              Installed Certificate                               |
+-------------------+--------------------------------------------------------------+
| User ID           | ****                                                   |
| Common Name       | iPhone Distribution: [REDACTED] (****) |
| Organisation Unit | ****                                                   |
| Organisation      | [REDACTED]                                   |
| Country           | US                                                           |
| Start Datetime    | 2018-10-12 22:31:21 UTC                                      |
| End Datetime      | 2019-10-12 22:31:21 UTC                                      |
+-------------------+--------------------------------------------------------------+


+-------------------------------------+------------------------------------------------+
|                               Summary for sigh 2.110.0                               |
+-------------------------------------+------------------------------------------------+
| app_identifier                      | [REDACTED]             |
| username                            | ****                               |
| force                               | true                                           |
| cert_id                             | [REDACTED]                                     |
| provisioning_name                   | match [REDACTED] |
| ignore_profiles_with_different_name | true                                           |
| team_id                             | ****                                     |
| platform                            | ios                                            |
| adhoc                               | true                                           |
| developer_id                        | false                                          |
| development                         | false                                          |
| skip_install                        | false                                          |
| team_name                           | [REDACTED]                     |
| skip_fetch_profiles                 | false                                          |
| skip_certificate_verification       | false                                          |
| readonly                            | false                                          |
+-------------------------------------+------------------------------------------------+

[14:29:40]: Starting login with user '****'
Available session is not valid any more. Continuing with normal login.
[14:29:43]: Successfully logged in
[14:29:43]: Fetching profiles...
[14:29:49]: ▸ [14:29:49]: Take notice that this output may contain sensitive information, or simply information that you don't want to make public.
[14:29:49]: ▸ [14:29:49]: Open https://github.com/fastlane/fastlane/issues/new to submit a new issue ✅
+------------------+-----------+
|         Lane Context         |
+------------------+-----------+
| DEFAULT_PLATFORM | ios       |
| PLATFORM_NAME    | ios       |
| LANE_NAME        | ios auto  |
| PRODUCE_APPLE_ID |           |
| VERSION_NUMBER   | [REDACTED] |
| BUILD_NUMBER     | [REDACTED] |
+------------------+-----------+
[14:29:49]: Can't find class 'adhoc'

+------+---------------------------------------------------------------+-------------+
|                                  fastlane summary                                  |
+------+---------------------------------------------------------------+-------------+
| Step | Action                                                        | Time (in s) |
+------+---------------------------------------------------------------+-------------+
| 1    | default_platform                                              | 0           |
| 2    | git_branch                                                    | 0           |
| 3    | awk -F '=' '/PRODUCT_BUNDLE_IDENTIFIER = [REDACTED]/ {print $2 | 0           |
| 4    | is_ci                                                         | 0           |
| 5    | clear_derived_data                                            | 1           |
| 6    | is_ci                                                         | 0           |
| 7    | delete_keychain                                               | 0           |
| 8    | create_keychain                                               | 0           |
| 9   | update_info_plist                                             | 0           |
| 10   | Switch to ios beta lane                                       | 0           |
| 11   | is_ci                                                         | 0           |
| 12   | update_app_identifier                                         | 1           |
| 13   | produce                                                       | 4           |
| 14   | is_ci                                                         | 0           |
| 15   | Switch to ios build lane                                      | 0           |
| 16   | increment_version_number                                      | 1           |
| 17   | increment_build_number                                        | 1           |
| 💥   | match                                                         | 39          |
+------+---------------------------------------------------------------+-------------+

[14:29:49]: fastlane finished with errors

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

➡️  Using getProvisioningProfile fails with conflict: You can't enable both :development and :adhoc
    https://github.com/fastlane/fastlane/issues/12506 [closed] 11 💬
    6 weeks ago

➡️  produce creates appID without push feature enabled
    https://github.com/fastlane/fastlane/issues/12963 [closed] 13 💬
    24 Sep 2018

➡️  784/776: unexpected token at 'Bad Request' (Faraday::ParsingError)
    https://github.com/fastlane/fastlane/issues/13666 [open] 54 💬
    a week ago

and 37 more at: https://github.com/fastlane/fastlane/search?q=Can%27t%20find%20class%20%27adhoc%27&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
/Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/spaceship/lib/spaceship/portal/provisioning_profile.rb:207:in `factory': [!] Can't find class 'adhoc' (RuntimeError)
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/spaceship/lib/spaceship/portal/provisioning_profile.rb:321:in `block in all'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/spaceship/lib/spaceship/portal/provisioning_profile.rb:321:in `map!'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/spaceship/lib/spaceship/portal/provisioning_profile.rb:321:in `all'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/spaceship/lib/spaceship/portal/provisioning_profile.rb:369:in `find_by_bundle_id'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/sigh/lib/sigh/runner.rb:70:in `fetch_profiles'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/sigh/lib/sigh/runner.rb:24:in `run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/sigh/lib/sigh/manager.rb:8:in `start'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/match/lib/match/generator.rb:76:in `generate_provisioning_profile'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/match/lib/match/runner.rb:231:in `fetch_provisioning_profile'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/match/lib/match/runner.rb:95:in `block (2 levels) in run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/match/lib/match/runner.rb:94:in `loop'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/match/lib/match/runner.rb:94:in `block in run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/match/lib/match/runner.rb:93:in `each'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/match/lib/match/runner.rb:93:in `run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/actions/sync_code_signing.rb:12:in `run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	from Fastfile:152:in `block (2 levels) in parsing_binding'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	from Fastfile:252:in `block (2 levels) in parsing_binding'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
	from Fastfile:294:in `block (2 levels) in parsing_binding'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
	from /Users/user/.rvm/gems/ruby-2.3.1/gems/fastlane-2.110.0/bin/fastlane:23:in `<top (required)>'
	from /Users/user/.rvm/gems/ruby-2.3.1/bin/fastlane:23:in `load'
	from /Users/user/.rvm/gems/ruby-2.3.1/bin/fastlane:23:in `<main>'
	from /Users/user/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
	from /Users/user/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'

Environment

▸ [14:29:48]: Generating fastlane environment output, this might take a few seconds...
[14:29:49]: ▸ 
✅ fastlane environment ✅ [14:29:49]: ▸ ### Stack [14:29:49]: ▸ | Key | Value | [14:29:49]: ▸ | --------------------------- | ------------------------------------------- | [14:29:49]: ▸ | OS | 10.13.6 | [14:29:49]: ▸ | Ruby | 2.3.1 | [14:29:49]: ▸ | Bundler? | true | [14:29:49]: ▸ | Git | git version 2.17.1 (Apple Git-112) | [14:29:49]: ▸ | Installation Source | ~/.rvm/gems/ruby-2.3.1/bin/fastlane | [14:29:49]: ▸ | Host | Mac OS X 10.13.6 (17G65) | [14:29:49]: ▸ | Ruby Lib Dir | ~/.rvm/rubies/ruby-2.3.1/lib | [14:29:49]: ▸ | OpenSSL Version | OpenSSL 1.0.2n 7 Dec 2017 | [14:29:49]: ▸ | Is contained | false | [14:29:49]: ▸ | Is homebrew | false | [14:29:49]: ▸ | Is installed via Fabric.app | false | [14:29:49]: ▸ | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | [14:29:49]: ▸ | Xcode Version | 10.0 | [14:29:49]: ▸ ### System Locale [14:29:49]: ▸ | Variable | Value | | [14:29:49]: ▸ | -------- | ----------- | - | [14:29:49]: ▸ | LANG | ru_RU.UTF-8 | ✅ | [14:29:49]: ▸ | LC_ALL | | | [14:29:49]: ▸ | LANGUAGE | | | [14:29:49]: ▸ ### fastlane gems [14:29:49]: ▸ | Gem | Version | Update-Status | [14:29:49]: ▸ | -------- | ------- | ------------- | [14:29:49]: ▸ | fastlane | 2.110.0 | ✅ Up-To-Date | [14:29:49]: ▸ ### Loaded fastlane plugins: [14:29:49]: ▸ **No plugins Loaded** [14:29:49]: ▸
Loaded gems [14:29:49]: ▸ | Gem | Version | [14:29:49]: ▸ | ------------------------- | ------------ | [14:29:49]: ▸ | did_you_mean | 1.0.0 | [14:29:49]: ▸ | io-console | 0.4.5 | [14:29:49]: ▸ | CFPropertyList | 3.0.0 | [14:29:49]: ▸ | concurrent-ruby | 1.1.3 | [14:29:49]: ▸ | i18n | 0.9.5 | [14:29:49]: ▸ | minitest | 5.11.3 | [14:29:49]: ▸ | thread_safe | 0.3.6 | [14:29:49]: ▸ | tzinfo | 1.2.5 | [14:29:49]: ▸ | activesupport | 4.2.11 | [14:29:49]: ▸ | public_suffix | 2.0.5 | [14:29:49]: ▸ | addressable | 2.5.2 | [14:29:49]: ▸ | atomos | 0.1.3 | [14:29:49]: ▸ | babosa | 1.0.2 | [14:29:49]: ▸ | bundler | 1.16.1 | [14:29:49]: ▸ | claide | 1.0.2 | [14:29:49]: ▸ | fuzzy_match | 2.0.4 | [14:29:49]: ▸ | nap | 1.1.0 | [14:29:49]: ▸ | cocoapods-core | 1.5.3 | [14:29:49]: ▸ | cocoapods-deintegrate | 1.0.2 | [14:29:49]: ▸ | cocoapods-downloader | 1.2.2 | [14:29:49]: ▸ | cocoapods-plugins | 1.0.0 | [14:29:49]: ▸ | cocoapods-search | 1.0.0 | [14:29:49]: ▸ | cocoapods-stats | 1.0.0 | [14:29:49]: ▸ | netrc | 0.11.0 | [14:29:49]: ▸ | cocoapods-trunk | 1.3.1 | [14:29:49]: ▸ | cocoapods-try | 1.1.0 | [14:29:49]: ▸ | colored2 | 3.1.2 | [14:29:49]: ▸ | escape | 0.0.4 | [14:29:49]: ▸ | fourflusher | 2.0.1 | [14:29:49]: ▸ | gh_inspector | 1.1.3 | [14:29:49]: ▸ | molinillo | 0.6.6 | [14:29:49]: ▸ | ruby-macho | 1.3.1 | [14:29:49]: ▸ | nanaimo | 0.2.6 | [14:29:49]: ▸ | xcodeproj | 1.7.0 | [14:29:49]: ▸ | cocoapods | 1.5.3 | [14:29:49]: ▸ | colored | 1.2 | [14:29:49]: ▸ | highline | 1.7.10 | [14:29:49]: ▸ | commander-fastlane | 4.4.6 | [14:29:49]: ▸ | declarative | 0.0.10 | [14:29:49]: ▸ | declarative-option | 0.1.0 | [14:29:49]: ▸ | digest-crc | 0.4.1 | [14:29:49]: ▸ | unf_ext | 0.0.7.5 | [14:29:49]: ▸ | unf | 0.1.4 | [14:29:49]: ▸ | domain_name | 0.5.20180417 | [14:29:49]: ▸ | dotenv | 2.5.0 | [14:29:49]: ▸ | emoji_regex | 0.1.1 | [14:29:49]: ▸ | excon | 0.62.0 | [14:29:49]: ▸ | multipart-post | 2.0.0 | [14:29:49]: ▸ | faraday | 0.15.4 | [14:29:49]: ▸ | http-cookie | 1.0.3 | [14:29:49]: ▸ | faraday-cookie_jar | 0.0.6 | [14:29:49]: ▸ | faraday_middleware | 0.12.2 | [14:29:49]: ▸ | fastimage | 2.1.5 | [14:29:49]: ▸ | jwt | 2.1.0 | [14:29:49]: ▸ | memoist | 0.16.0 | [14:29:49]: ▸ | multi_json | 1.13.1 | [14:29:49]: ▸ | os | 1.0.0 | [14:29:49]: ▸ | signet | 0.11.0 | [14:29:49]: ▸ | googleauth | 0.6.7 | [14:29:49]: ▸ | httpclient | 2.8.3 | [14:29:49]: ▸ | mime-types-data | 3.2018.0812 | [14:29:49]: ▸ | mime-types | 3.2.2 | [14:29:49]: ▸ | uber | 0.1.0 | [14:29:49]: ▸ | representable | 3.0.4 | [14:29:49]: ▸ | retriable | 3.1.2 | [14:29:49]: ▸ | google-api-client | 0.23.9 | [14:29:49]: ▸ | google-cloud-env | 1.0.5 | [14:29:49]: ▸ | google-cloud-core | 1.2.7 | [14:29:49]: ▸ | google-cloud-storage | 1.15.0 | [14:29:49]: ▸ | json | 2.1.0 | [14:29:49]: ▸ | mini_magick | 4.5.1 | [14:29:49]: ▸ | multi_xml | 0.6.0 | [14:29:49]: ▸ | plist | 3.4.0 | [14:29:49]: ▸ | rubyzip | 1.2.2 | [14:29:49]: ▸ | security | 0.1.3 | [14:29:49]: ▸ | naturally | 2.2.0 | [14:29:49]: ▸ | simctl | 1.6.5 | [14:29:49]: ▸ | slack-notifier | 2.3.2 | [14:29:49]: ▸ | terminal-notifier | 1.8.0 | [14:29:49]: ▸ | unicode-display_width | 1.4.0 | [14:29:49]: ▸ | terminal-table | 1.8.0 | [14:29:49]: ▸ | tty-screen | 0.6.5 | [14:29:49]: ▸ | tty-cursor | 0.6.0 | [14:29:49]: ▸ | tty-spinner | 0.9.0 | [14:29:49]: ▸ | word_wrap | 1.0.0 | [14:29:49]: ▸ | rouge | 2.0.7 | [14:29:49]: ▸ | xcpretty | 0.3.0 | [14:29:49]: ▸ | xcpretty-travis-formatter | 1.0.0 | [14:29:49]: ▸ | ffi | 1.9.25 | [14:29:49]: ▸ | mustache | 0.99.8 | [14:29:49]: ▸ | open4 | 1.3.4 | [14:29:49]: ▸ | redcarpet | 3.4.0 | [14:29:49]: ▸ | rb-fsevent | 0.10.3 | [14:29:49]: ▸ | rb-inotify | 0.9.10 | [14:29:49]: ▸ | sass-listen | 4.0.0 | [14:29:49]: ▸ | sass | 3.7.2 | [14:29:49]: ▸ | sqlite3 | 1.3.13 | [14:29:49]: ▸ | liferaft | 0.0.6 | [14:29:49]: ▸ | xcinvoke | 0.3.0 | [14:29:49]: ▸ | jazzy | 0.9.4 | [14:29:49]: ▸
[14:29:49]: ▸ *generated on:* **2018-12-13** [14:29:49]: ▸

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 21
  • Comments: 39 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Hey everyone, just shipped a new release, please update and let us know if it works. Thanks @machty for working on the fix 👍

I opened #13907; if tests are an imperative for this fix I personally don’t have the bandwidth to dig in and figure out what kinds of tests to write but happy to have someone else who’s familiar take the reins.

@KrauseFx yes sir, the bug is not reproduced with the new version and it works the way it should. Thank you for the rapid response.

updating to fastlane 2.113.0 fixed the issue