Fastlane trainer not executing for Xcode 15

I created an issue on the Fastlane repo, but I’m not fully certain where the problem lies, so I’m cross posting it here. It appears that there’s an issue with Fastlane trainer where it specifically calls out to the gsub with the error:

[!] undefined method gsub' for nil:NilClass (NoMethodError)

Here’s the lane I’m attempting to run with no modifications from running it with Xcode 14

desc "Upload test reports"
	lane :upload_test_reports do
	trainer
end

I then simply run fastlane upload_test_reports from the command line and you can see the output I get below

[✔] 🚀 
+-------------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                                                                                            Used plugins                                                                                                                                                             |
+-------------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Plugin                                    | Version | Action                                                                                                                                                                                                                                                                        |
+-------------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| fastlane-plugin-firebase_app_distribution | 0.7.2   | firebase_app_distribution, firebase_app_distribution_add_testers, firebase_app_distribution_create_group, firebase_app_distribution_delete_group, firebase_app_distribution_get_latest_release, firebase_app_distribution_get_udids, firebase_app_distribution_remove_testers |
+-------------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

[14:36:41]: ------------------------------
[14:36:41]: --- Step: default_platform ---
[14:36:41]: ------------------------------
[14:36:41]: Driving the lane 'ios upload_test_reports' 🚀
[14:36:41]: ---------------------
[14:36:41]: --- Step: trainer ---
[14:36:41]: ---------------------

+------------------------------+-------+
|     Summary for trainer 2.214.0      |
+------------------------------+-------+
| path                         | .     |
| extension                    | .xml  |
| fail_build                   | true  |
| xcpretty_naming              | false |
| silent                       | false |
| output_remove_retry_attempts | false |
+------------------------------+-------+

+------------------+-------------------------+
|                Lane Context                |
+------------------+-------------------------+
| DEFAULT_PLATFORM | ios                     |
| PLATFORM_NAME    | ios                     |
| LANE_NAME        | ios upload_test_reports |
+------------------+-------------------------+

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | trainer          | 0           |
+------+------------------+-------------+

[14:36:41]: fastlane finished with errors

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

➡️  sigh repair fails with "undefined method `id' for nil:NilClass (NoMethodError) certificates.map(&:id)" with Apple Distribution certificate type
    https://github.com/fastlane/fastlane/issues/21295 [open] 2 💬
    24 May 2023

➡️  [supply] added support for refresh tokens as an authentication method
    https://github.com/fastlane/fastlane/pull/16414 [open] 10 💬
    23 May 2020

➡️  Unable to upload to testflight using Xcode 14 beta
    https://github.com/fastlane/fastlane/issues/20371 [closed] 150 💬
    17 May 2023

and 24 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60gsub%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/3.2.0/bin/fastlane)
/Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/xcresult.rb:395:in `failure_message': [!] undefined method `gsub' for nil:NilClass (NoMethodError)

          file_path = self.document_location_in_creating_workspace.url.gsub("file://", "")
                                                                      ^^^^^
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:278:in `block (2 levels) in summaries_to_data'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:244:in `map'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:244:in `block in summaries_to_data'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:236:in `map'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:236:in `summaries_to_data'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:225:in `parse_xcresult'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:105:in `initialize'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:82:in `new'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:82:in `block in auto_convert'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:53:in `each'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:53:in `auto_convert'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/actions/trainer.rb:11:in `run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:30:in `block (2 levels) in parsing_binding'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/bin/fastlane:23:in `<top (required)>'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/bin/fastlane:25:in `load'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/bin/fastlane:25:in `<top (required)>'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli/exec.rb:58:in `load'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli/exec.rb:23:in `run'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli.rb:491:in `exec'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli.rb:34:in `dispatch'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli.rb:28:in `start'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/exe/bundle:45:in `block in <top (required)>'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/exe/bundle:33:in `<top (required)>'
	from /Users/distiller/.rbenv/versions/3.2.2/bin/bundle:25:in `load'
	from /Users/distiller/.rbenv/versions/3.2.2/bin/bundle:25:in `<main>'
/Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/xcresult.rb:395:in `failure_message': undefined method `gsub' for nil:NilClass (NoMethodError)

          file_path = self.document_location_in_creating_workspace.url.gsub("file://", "")
                                                                      ^^^^^
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:278:in `block (2 levels) in summaries_to_data'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:244:in `map'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:244:in `block in summaries_to_data'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:236:in `map'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:236:in `summaries_to_data'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:225:in `parse_xcresult'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:105:in `initialize'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:82:in `new'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:82:in `block in auto_convert'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:53:in `each'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/trainer/lib/trainer/test_parser.rb:53:in `auto_convert'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/actions/trainer.rb:11:in `run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:30:in `block (2 levels) in parsing_binding'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/gems/fastlane-2.214.0/bin/fastlane:23:in `<top (required)>'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/bin/fastlane:25:in `load'
	from /Users/distiller/project/vendor/bundle/ruby/3.2.0/bin/fastlane:25:in `<top (required)>'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli/exec.rb:58:in `load'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli/exec.rb:23:in `run'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli.rb:491:in `exec'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli.rb:34:in `dispatch'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/cli.rb:28:in `start'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/exe/bundle:45:in `block in <top (required)>'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from /Users/distiller/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.2/exe/bundle:33:in `<top (required)>'
	from /Users/distiller/.rbenv/versions/3.2.2/bin/bundle:25:in `load'
	from /Users/distiller/.rbenv/versions/3.2.2/bin/bundle:25:in `<main>'

Like I said, there were not modifications to running this on Xcode 14, so I’m assuming something else is at play here.

Pretty lost on this, so any help would be appreciated