when I am using this command in macOS Catalina 10.15:
bundle exec fastlane beta
shows this error:
[00:04:45]: To not be asked about this value, you can specify it using 'git_url'
+------------------+----------+
| Lane Context |
+------------------+----------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
+------------------+----------+
[00:04:45]: no implicit conversion of Hash into String
+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | default_platform | 0 |
| 2 | is_ci | 0 |
| 3 | is_ci | 0 |
| 💥 | match | 0 |
+------+------------------+-------------+
[00:04:45]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
Could not access the GitHub API, you may have better luck via the website.
https://github.com/fastlane/fastlane/search?q=no implicit conversion of Hash into String&type=Issues&utf8=✓
bundler: failed to load command: fastlane (/Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane)
/Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/highline-1.7.10/lib/highline.rb:624:in `encode': \e[31m[!] no implicit conversion of Hash into String\e[0m (TypeError)
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/highline-1.7.10/lib/highline.rb:624:in `say'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/highline-1.7.10/lib/highline.rb:261:in `ask'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/forwardable.rb:238:in `ask'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb:130:in `input'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:243:in `fetch'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/match/lib/match/runner.rb:34:in `run'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/actions/sync_code_signing.rb:14:in `run'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:22:in `block (2 levels) in parsing_binding'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.177.0/bin/fastlane:23:in `<top (required)>'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane:23:in `load'
from /Users/dolphin/Documents/GitHub/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane:23:in `<top (required)>'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/cli/exec.rb:63:in `load'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/cli/exec.rb:63:in `kernel_load'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/cli/exec.rb:28:in `run'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/cli.rb:497:in `exec'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/cli.rb:30:in `dispatch'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/cli.rb:24:in `start'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/gems/3.0.0/gems/bundler-2.2.3/exe/bundle:49:in `block in <top (required)>'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/bundler/friendly_errors.rb:130:in `with_friendly_errors'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/gems/3.0.0/gems/bundler-2.2.3/exe/bundle:37:in `<top (required)>'
from /usr/local/Cellar/ruby/3.0.0_1/bin/bundle:23:in `load'
what should I do to fix it? This is my fastlane version info:
~/Documents/GitHub/cruise-open/ios on main! ⌚ 0:04:51
$ fastlane -v
fastlane installation at path:
/usr/local/Cellar/fastlane/2.177.0/libexec/gems/fastlane-2.177.0/bin/fastlane
-----------------------------
[✔] 🚀
/usr/local/Cellar/fastlane/2.177.0/libexec/gems/highline-1.7.10/lib/highline.rb:624: warning: Using the last argument as keyword parameters is deprecated
fastlane 2.177.0
(base)
Related
I'm trying to upgrade our applications acceptance tests to run on ruby version 3.1.2 from 2.5.3.
And getting this output when running tests through intellij:
/bin/bash -c "env RBENV_VERSION=3.1.2 /home/####/.rbenv/libexec/rbenv exec ruby -EUTF-8 /home/####/.rbenv/versions/3.1.2/bin/cucumber /home/####/git/PATH/TEST_NAME.feature --format 'Teamcity::Cucumber::Formatter' --expand --name '^VbV TEST_NAME ACCEPT$' --color -r features"
Testing started at 11:25 ...
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/profile_loader.rb:68: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/profile_loader.rb:68: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
wrong number of arguments (given 4, expected 3) (ArgumentError)
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filters/node_filter.rb:9:in `initialize'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:115:in `new'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:115:in `add_filter'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:19:in `node_filter'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector.rb:5:in `block in <top (required)>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:15:in `instance_eval'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:15:in `initialize'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:77:in `new'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:77:in `add'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector.rb:4:in `<top (required)>'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara.rb:433:in `<module:Capybara>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara.rb:9:in `<top (required)>'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
/home/####/git/PATH/support/env.rb:7:in `<top (required)>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load_code_file'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:144:in `load_file'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:85:in `block in load_files!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `each'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `load_files!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:272:in `load_step_definitions'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:68:in `run!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in `execute!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/bin/cucumber:9:in `<top (required)>'
/home/####/.rbenv/versions/3.1.2/bin/cucumber:25:in `load'
/home/####/.rbenv/versions/3.1.2/bin/cucumber:25:in `<main>'
Process finished with exit code 2
The error from the RubyMine terminal is:
/bin/zsh -c "bash -c 'env RBENV_VERSION=2.7.5 /usr/local/Cellar/rbenv/1.2.0/libexec/rbenv exec ruby -x /Users/user1/srccompanyl/bin/bundle exec ruby /Users/user1/srccompanyl/bin/rails server -b 0.0.0.0 -p 3000 -e development'"
Traceback (most recent call last):
27: from /Users/user1/srccompanyl/bin/rails:4:in `<main>'
26: from /Users/user1/srccompanyl/bin/rails:4:in `require'
25: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands.rb:18:in `<top (required)>'
24: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/command.rb:48:in `invoke'
23: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/command/base.rb:69:in `perform'
22: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
21: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
20: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
19: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `perform'
18: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `tap'
17: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:138:in `block in perform'
16: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
15: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
14: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
13: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
12: from /Users/user1/srccompanyl/config/application.rb:16:in `<top (required)>'
11: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler.rb:114:in `require'
10: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `require'
9: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `each'
8: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `block in require'
7: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `each'
6: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
5: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `require'
4: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/pg-1.2.3/lib/pg.rb:5:in `<top (required)>'
3: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
2: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
1: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
/Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require': incompatible library version - /Users/user1/.rvm/gems/ruby-2.7.5/gems/pg-1.2.3/lib/pg_ext.bundle (LoadError)
Process finished with exit code 1
How do I debug and fix? I tried running bundler install but same incompatible library version. Do I need to make sure the rbenv version match? How do I do that?
Setting up CircleCI Pipeline for ios build using fastlane.
I'm running into an issue with the gym build process as per below with the gym process that's displaying the error message - bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane)
FASTLANE GYM ERROR
+------+--------------------------------------+-------------+
| fastlane summary |
+------+--------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+--------------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | setup_circle_ci | 0 |
| 3 | Switch to ios sync_certificates lane | 0 |
| 4 | app_store_connect_api_key | 0 |
| 5 | match | 1 |
| 6 | automatic_code_signing | 0 |
| 💥 | gym | 41 |
+------+--------------------------------------+-------------+
DEBUG [2022-07-28 03:10:48.07]: All plugins are up to date
ERROR [2022-07-28 03:10:48.07]: fastlane finished with errors
DEBUG [2022-07-28 03:10:48.07]: All plugins are up to date
bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane)
Traceback (most recent call last):
49: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `<main>'
48: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `load'
47: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:36:in `<top (required)>'
46: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
45: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:48:in `block in <top (required)>'
44: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:25:in `start'
43: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
42: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:31:in `dispatch'
41: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
40: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
39: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
38: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:483:in `exec'
37: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:23:in `run'
36: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `kernel_load'
35: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `load'
34: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `<top (required)>'
33: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `load'
32: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/bin/fastlane:23:in `<top (required)>'
31: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
30: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
29: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
28: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
27: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
26: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
25: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
24: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
23: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
22: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
21: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
20: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
19: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
18: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
17: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane.rb:33:in `call'
16: from Fastfile:41:in `block (2 levels) in parsing_binding'
15: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
14: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
13: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
12: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
11: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
10: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
9: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
8: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/build_app.rb:68:in `run'
7: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/manager.rb:19:in `work'
6: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:18:in `run'
5: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:110:in `build_app'
4: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/command_executor.rb:84:in `execute'
3: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:114:in `block in build_app'
2: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/error_handler.rb:73:in `handle_build_error'
1: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!': Error building the application - see the log above (FastlaneCore::Interface::FastlaneBuildFailure)
49: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `<main>'
48: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `load'
47: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:36:in `<top (required)>'
46: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
45: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:48:in `block in <top (required)>'
44: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:25:in `start'
43: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
42: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:31:in `dispatch'
41: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
40: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
39: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
38: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:483:in `exec'
37: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:23:in `run'
36: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `kernel_load'
35: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `load'
34: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `<top (required)>'
33: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `load'
32: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/bin/fastlane:23:in `<top (required)>'
31: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
30: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
29: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
28: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
27: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
26: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
25: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
24: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
23: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
22: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
21: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
20: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
19: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
18: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
17: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane.rb:33:in `call'
16: from Fastfile:41:in `block (2 levels) in parsing_binding'
15: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
14: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
13: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
12: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
11: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
10: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
9: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
8: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/build_app.rb:68:in `run'
7: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/manager.rb:19:in `work'
6: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:18:in `run'
5: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:110:in `build_app'
4: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/command_executor.rb:84:in `execute'
3: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:114:in `block in build_app'
2: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/error_handler.rb:73:in `handle_build_error'
1: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!': \e[31m[!] Error building the application - see the log above\e[0m (FastlaneCore::Interface::FastlaneBuildFailure)
Exited with code exit status 1
CircleCI received exit code 1
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
default_platform(:ios)
platform :ios do
before_all do
setup_circle_ci
end
desc "Sync certificates"
lane :sync_certificates do
app_store_connect_api_key(
key_id: "redacted",
issuer_id: "redacted",
key_content: "redacted",
is_key_content_base64: true,
in_house: false #boolean value if team is Enterprise or not
)
#read-only disables match from overriding the existing certificates.
match({readonly: true, type: "development"})
end
desc "Create ipa"
lane :build do
#update profiles
sync_certificates
# Creates a signed file
disable_automatic_code_signing(path: "redacted-ios.xcodeproj")
gym(export_method: "development")
end
desc "Upload to TestFlight"
lane :beta do
sync_certificates
build
# pilot
end
end
CirclCI Config File
# .circleci/config.yml
version: 2.1
orbs:
ruby: circleci/ruby#1.8.0
slack: circleci/slack#4.10.1
aliases:
- &restore_gem_cache
name: Restore gem cache
keys:
- gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- gem-cache-v1-{{ arch }}-{{ .Branch }}
# Fall back to using the latest cache if no exact match is found.
- gem-cache-v1
- &save_gem_cache
name: Save gem cache
key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- &bundle_install
name: Install Gems via Bundler
command: bundle install --path vendor/bundle
- &restore_pods_cache
name: Restore pods cache
key: 2-pods-{{ checksum "Podfile.lock" }}
- &pod_install
name: Install Pods
command: |
if [ ! -d "Pods" ]
then
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
bundle exec pod install
fi
- &save_pods_cache
name: Save pods cache
key: 2-pods-{{ checksum "Podfile.lock" }}
paths: ./Pods
jobs:
test_app:
macos:
xcode: "14.0.0"
working_directory: /Users/distiller/project
environment:
FL_OUTPUT_DIR: output
FASTLANE_LANE: build
shell: /bin/bash --login -o pipefail
steps:
- checkout
- run: bundle install
- run: bundle update
- ruby/install-deps
- restore_cache: *restore_pods_cache
- run:
name: pod Install
command: pod install
- save_cache: *save_pods_cache
- run:
name: add to ssh pub
command: echo $SSH_PUB > ~/.ssh/redacted.pub
- run:
name: add to ssh pvt
command: echo $SSH_PVT > ~/.ssh/redacted
- run:
name: ssh check
command: cat ~/.ssh/known_hosts
- run:
name: check all env var
command: printenv
- run:
name: fastlane build
command: bundle exec fastlane $FASTLANE_LANE --verbose
- run:
name: check keychain status
command: security find-identity -v -p codesigning
- store_artifacts:
path: /Users/distiller/Library/Logs/gym
- store_test_results:
path: output/scan
# - slack/notify:
# event: pass
# template: basic_success_1
# - slack/notify:
# event: fail
# template: basic_fail_1
workflows:
verify:
jobs:
- test_app:
context:
- Slack Integration
Any help would be greatly appreciated!
Issue ended up being that match wasn't applying the certificate properly.
I am using the command bundle exec fastlane <some lane> in an iOS project and I get this error:
[17:19:50]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ Improve Beta Setup
https://github.com/fastlane/fastlane/pull/1 [closed] 1 💬
04 Feb 2017
➡️ Shell command exited with exit status 2 instead of 0.
https://github.com/fastlane/fastlane/issues/19339 [closed] 5 💬
4 weeks ago
➡️ create_keychain throwing Shell command exited with exit status 162 instead of 0
https://github.com/fastlane/fastlane/issues/19374 [closed] 4 💬
4 weeks ago
and 93 more at: https://github.com/fastlane/fastlane/search?q=Shell%20command%20exited%20with%20exit%20status%201%20instead%20of%200.&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane)
Traceback (most recent call last):
51: from /opt/homebrew/opt/ruby#2.7/bin/bundle:25:in `<main>'
50: from /opt/homebrew/opt/ruby#2.7/bin/bundle:25:in `load'
49: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/exe/bundle:36:in `<top (required)>'
48: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
47: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/exe/bundle:48:in `block in <top (required)>'
46: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli.rb:25:in `start'
45: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
44: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli.rb:31:in `dispatch'
43: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
42: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
41: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
40: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli.rb:484:in `exec'
39: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:23:in `run'
38: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:58:in `kernel_load'
37: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:58:in `load'
36: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane:25:in `<top (required)>'
35: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane:25:in `load'
34: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/bin/fastlane:23:in `<top (required)>'
33: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
32: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
31: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
30: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
29: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
28: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
27: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
26: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
25: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
24: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
23: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
22: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:45:in `execute'
21: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:45:in `chdir'
20: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
19: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane.rb:33:in `call'
18: from Fastfile:644:in `block (2 levels) in parsing_binding'
17: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
16: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
15: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
14: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane.rb:33:in `call'
13: from Fastfile:700:in `block (2 levels) in parsing_binding'
12: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
11: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
10: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
9: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane.rb:33:in `call'
8: from Fastfile:729:in `block (2 levels) in parsing_binding'
7: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:214:in `sh'
6: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:222:in `sh'
5: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
4: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:223:in `block in sh'
3: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/helper/sh_helper.rb:16:in `sh_no_action'
2: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
1: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
But when I go into /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane then I can execute the file. That's really strange.
I tried many things before like updating/reinstalling fastlane, gem, ruby, bundle install/update, deleting Gemfile.lock ...
My ruby version: ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [arm64-darwin21]
My fastlane version: fastlane 2.204.3
My bundler version: 2.3.5
My gem version: 3.3.9
The .zshrc contains the path: export PATH="/opt/homebrew/opt/ruby#2.7/bin:$PATH"
I have simply no idea what to do now because I can not work since I can not run this lane. Hope anyone can help me out. Thank you in advance!
If a lane is available with the same name, in my case it fails.
i.e.
lane match_nuke
match_nuke(...)
end
It will fail, but if you use:
i.e.
lane match_cleanup
match_nuke(...)
end
It will work.
I'm not available to provide any link of documentation so I didn't see it mentioned anywhere.
While installing chef-server on my VM I am getting the following error.
FATAL: Chef::Exceptions::JSON::EncodeError: Invalid UTF-8 string: cannot encode to UTF-8
and my chef-stacktrace.out is
Chef::Exceptions::JSON::EncodeError: Invalid UTF-8 string: cannot encode to UTF-8
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/json_compat.rb:107:in `rescue in to_json'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/json_compat.rb:104:in `to_json'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http/json_input.rb:35:in `handle_request'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:222:in `block in apply_request_middleware'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `each'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `inject'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `apply_request_middleware'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:141:in `request'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:118:in `put'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/node.rb:512:in `save'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/client.rb:257:in `save_updated_node'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/client.rb:403:in `run'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:243:in `run_with_graceful_exit_option'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:220:in `block in run_chef_client'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/local_mode.rb:38:in `with_server_connectivity'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:201:in `run_chef_client'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application/client.rb:328:in `run_application'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:58:in `run'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/bin/chef-client:26:in `<top (required)>'
/opt/opscode/embedded/bin/chef-client:23:in `load'
/opt/opscode/embedded/bin/chef-client:23:in `<main>'
~
~
~
I have tried almost everything. I realised that the issue was related to encoding but couldn't solve it. Any help is appreciated.
thanks.
I believe this should be fixed in version 12.4.0
https://github.com/chef/chef/issues/3216