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

Trainer not working with Xcode 15 beta 6 #21475

Closed
4 tasks done
mapierce opened this issue Aug 22, 2023 · 13 comments · Fixed by #21493
Closed
4 tasks done

Trainer not working with Xcode 15 beta 6 #21475

mapierce opened this issue Aug 22, 2023 · 13 comments · Fixed by #21493

Comments

@mapierce
Copy link

New Issue Checklist

Issue Description

Using trainer with Xcode 15 beta 6 doesn't appear to work. I first ran into this issue when running on an M1 on CircleCI, but this is also a local issue on my machine, also running an M1.

Command executed

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

Complete output when running fastlane, including the stack trace and command used
 [✔] 🚀 
+-------------------------------------------+---------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                                                                                            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: --- 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
#21295 [open] 2 💬
24 May 2023

➡️ [supply] added support for refresh tokens as an authentication method
#16414 [open] 10 💬
23 May 2020

➡️ Unable to upload to testflight using Xcode 14 beta
#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>'

Environment

 [✔] 🚀 
[14:39:35]: Generating fastlane environment output, this might take a few seconds...
swift-driver version: 1.87.1 
✅ fastlane environment ✅

Stack

Key Value
OS 13.5
Ruby 3.2.2
Bundler? true
Git git version 2.41.0
Installation Source ~/project/vendor/bundle/ruby/3.2.0/bin/fastlane
Host macOS 13.5 (22G74)
Ruby Lib Dir ~/.rbenv/versions/3.2.2/lib
OpenSSL Version OpenSSL 3.1.1 30 May 2023
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode-15.app/Contents/Developer/
Xcode Version 15.0
Swift Version 5.9

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

`./fastlane/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

	desc "Update profiles with any new registered devices."
	  lane :update_code_signing_with_new_devices do
	    # add actions here: https://docs.fastlane.tools/actions
	    match(
	    	type: "development",
	    	force_for_new_devices: true)
	end

	desc "Upload test reports"
		lane :upload_test_reports do
  		trainer
	end
	
	lane :increment_version do
		setup_circle_ci
		latest_release = firebase_app_distribution_get_latest_release(
		  app: ENV['xxxxxx'],
		)
		increment_build_number({ build_number: latest_release[:buildVersion].to_i + 1,
								 xcodeproj:"xxxxxx/xxxxxx.xcodeproj" })
	  end

    desc "Upload to Firebase App Distribution"
    lane :upload_firebase do |options|
	    setup_circle_ci
        match(
            type: "enterprise",
            readonly: true,
            app_identifier: ["xxxxxxxx"]
        )
        gym(
            scheme: "xxxxxx",
     	    export_method: "enterprise",
            export_options:{
                signingStyle: "manual",
                provisioningProfiles:{
                    "xxxxxxxxx"
                }
            }
                
        )
	    firebase_app_distribution(
			app: ENV['xxxxxx'],
			firebase_cli_token: ENV['xxxxxx'],
        	release_notes: options[:release_notes],
			groups: "all-testers",
			ipa_path: "/Users/distiller/project/xxxxxx.ipa"
	    )
    end

end
`./fastlane/Appfile`
app_identifier("xxxxxxx") # The bundle identifier of your app
apple_id("xxxxxxx") # Your Apple email address

team_id "xxxxxxx"  # Developer Portal Team ID # "xxxxxxx" (In-House)

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem Version Update-Status
fastlane 2.214.0 ✅ Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-firebase_app_distribution 0.7.2 ✅ Up-To-Date
Loaded gems
Gem Version
Redacted Redacted

generated on: 2023-08-22

@TheMetalCode
Copy link
Contributor

Can confirm this behavior for Xcode 15 Beta 8 as well, although for me it's intermittent.

@TheMetalCode
Copy link
Contributor

Having dug deeper into the code that is throwing the error: https://github.com/fastlane/fastlane/blob/master/trainer/lib/trainer/xcresult.rb#L395

I'm finding that we can no longer rest on the assumption that self.document_location_in_creating_workspace will always have the url property. I was able to reproduce the error locally with an .xcresult bundle from a failing CI build, and when I stepped through via pry I did indeed find an instance where a test failure did not have a url associated with it.

I'm less sure about why url would be occasionally missing from test failure data all of a sudden, but #21493 does seem like a straightforward and non-intrusive resolution.

@mapierce
Copy link
Author

Sounds good, I'll keep my eyes peeled for it getting released! 👍

@adamsousa
Copy link

Seeing this issue in Xcode 15 RC. Be great to get #21493 merged.

@raid5
Copy link

raid5 commented Sep 19, 2023

I'm also hitting this issue with Xcode 15 RC.

@lucasmarcal-faire
Copy link

Any workaround for now?

@rogerluan
Copy link
Member

Current workaround could be using #21493 in your env:

To test that branch, modify your Gemfile as:

gem 'fastlane', git: 'https://github.com/TheMetalCode/fastlane.git', branch: 'jjh/fix-trainer-xcode-15-beta'

And run bundle install to apply the changes.

@rogerluan
Copy link
Member

This is happening even in latest Xcode 15.0.0, by the way (which is not in beta nor RC anymore).

@tejassharma96
Copy link
Contributor

it might be related to what's being tested - I see this happen fairly consistently (~50% of the time) on UI tests but have not seen it yet on unit tests.

apologies for the tag @rogerluan but any chance we can get the fix merged and release soon? this is causing havoc in our CI pipelines :/

@radekcieciwa
Copy link

Would love to see that one merged as well. It's constantly failing for one of our apps. Can I assist/help somehow?

@adamszeremeta
Copy link

Any news when this will be released as new fastlane version?

@jaysoffian
Copy link
Contributor

This is not specific to M1. I'm seeing this occur on Intel Macs too with Xcode 15.0 (15A240d).

@rogerluan
Copy link
Member

The fix to this issue has been released in https://github.com/fastlane/fastlane/releases/tag/2.217.0

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