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

FastlaneRunner lane swiftServerPort 2000 Killed: 9 #18933

Closed
4 tasks done
amine2233 opened this issue Jun 21, 2021 · 21 comments
Closed
4 tasks done

FastlaneRunner lane swiftServerPort 2000 Killed: 9 #18933

amine2233 opened this issue Jun 21, 2021 · 21 comments

Comments

@amine2233
Copy link

New Issue Checklist

Issue Description

I use Fastlane with swift, on Mac intel and m1, on this both machines I have the same failure

bundle exec fastlane updateProvisioning
bundle      fastlane updateProvisioning
[✔] 🚀
[07:52:36]: loading manifest: /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/swift/upgrade_manifest.json
[07:52:36]: FastlaneSwiftRunner project is up-to-date
[07:52:36]: $ ./fastlane/FastlaneRunner lane updateProvisioning swiftServerPort 2000 > /dev/null
[07:52:36]: ▸ sh: line 1:  2110 Killed: 9               ./fastlane/FastlaneRunner lane updateProvisioning swiftServerPort 2000 > /dev/null
#<Thread:0x0000000107e7a510 /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/swift_lane_manager.rb:96 run> terminated with exception (report_on_exception is true):
/Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': Exit status of command './fastlane/FastlaneRunner lane updateProvisioning swiftServerPort 2000 > /dev/null' was 137 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
sh: line 1:  2110 Killed: 9               ./fastlane/FastlaneRunner lane updateProvisioning swiftServerPort 2000 > /dev/null
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/helper/sh_helper.rb:12:in `sh'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/swift_lane_manager.rb:97:in `block in cruise_swift_lane_in_thread'
#<Thread:0x0000000107e8aeb0 /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/swift_lane_manager.rb:220 run> terminated with exception (report_on_exception is true):
/Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds, shutting down (FastlaneCore::Interface::FastlaneError)
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/server/socket_server.rb:151:in `rescue in listen'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/server/socket_server.rb:146:in `listen'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/server/socket_server.rb:38:in `start'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/swift_lane_manager.rb:223:in `block in start_socket_thread'
/Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/server/socket_server.rb:148:in `accept': execution expired (Timeout::Error)
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/server/socket_server.rb:148:in `block in listen'
	from /Users/amine/.rvm/rubies/ruby-3.0.1/lib/ruby/3.0.0/timeout.rb:112:in `timeout'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/server/socket_server.rb:147:in `listen'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/server/socket_server.rb:38:in `start'
	from /Users/amine/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/gems/fastlane-2.185.1/fastlane/lib/fastlane/swift_lane_manager.rb:223:in `block in start_socket_thread'
+-----------+--------------------+
|          Lane Context          |
+-----------+--------------------+
| LANE_NAME | updateProvisioning |
+-----------+--------------------+
[07:52:41]: fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds, shutting down
[07:52:41]: fastlane finished with errors

[!] fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds, shutting down
Command executed

I just excuse my lane `bundle exec fastlane updateProvisioning

Complete output when running fastlane, including the stack trace and command used
✅ fastlane environment ✅

Stack

Key Value
OS 11.4
Ruby 3.0.1
Bundler? true
Git git version 2.32.0
Installation Source ~/Projects/ios/intech-consulting-match/.vendor/ruby/3.0.0/bin/fastlane
Host macOS 11.4 (20F71)
Ruby Lib Dir ~/.rvm/rubies/ruby-3.0.1/lib
OpenSSL Version OpenSSL 1.1.1k 25 Mar 2021
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 12.5
Swift Version 5.4

System Locale

Variable Value
LANG fr_FR.UTF-8
LC_ALL
LANGUAGE

fastlane files:

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

import Foundation

func environment(get key: String) -> String {
	ProcessInfo.processInfo.environment[key] ?? ""
}

class Fastfile: LaneFile {
	private lazy var s3Region: String = { environment(get: "S3_REGION") }()
	private lazy var s3AccessKey: String = { environment(get: "S3_ACCESS_KEY") }()
	private lazy var s3SecretAccessKey: String = { environment(get: "S3_SECRET_ACCESS_KEY") }()
	private lazy var s3Bucket: String = { environment(get: "S3_BUCKET") }()

	private func getAppIdentifiers(withOptions options:[String: String]?) -> [Constants.AppIdentifiers] {
		guard let options = options,
			  let app = options[Constants.appIdentifiersOption],
			  let appIdentifier =  Constants.AppIdentifiers(rawValue: app) else { return Constants.AppIdentifiers.allCases }
		return [appIdentifier]
	}

	private func getOutputPath(withOptions options:[String: String]?) -> String? {
		guard let options = options,
			  let outputPath = options[Constants.outputPathOption] else { return nil }
		return outputPath
	}

	func fetchProvisioningLane(withOptions options:[String: String]?) {
		desc("Fetch provisiong profiles")

		let appIdentifiers = getAppIdentifiers(withOptions: options)
		let outputPath = getOutputPath(withOptions: options)

		appIdentifiers.forEach { key in
			key.appIdentifiers.forEach { appIdentifier in
				appIdentifier.types.forEach { type in
					appIdentifier.platforms.forEach { platform in
						match(
							type: type.rawValue,
							readonly: true,
							appIdentifier: appIdentifier.identifiers,
							username: .userDefined(appleID),
							teamId: .userDefined(teamID),
							teamName: .userDefined(key.rawValue),
							storageMode: Constants.storageMode,
							s3Region: .userDefined(s3Region),
							s3AccessKey: .userDefined(s3AccessKey),
							s3SecretAccessKey: .userDefined(s3SecretAccessKey),
							s3Bucket: .userDefined(key.s3Bucket ?? s3Bucket),
							s3ObjectPrefix: .userDefined(key.s3ObjectPrefix),
							platform: platform.rawValue,
							deriveCatalystAppIdentifier: .userDefined(appIdentifier.includeMacCatalyst),
							outputPath: .userDefined(outputPath)
						)
					}
				}
			}
		}
	}

	// fastlane [lane] key:value key2:value2
	func updateProvisioningLane(withOptions options:[String: String]?) {
		desc("Update provisiong profiles")

		let appIdentifiers = getAppIdentifiers(withOptions: options)
		let outputPath = getOutputPath(withOptions: options)

		appIdentifiers.forEach { key in
			key.appIdentifiers.forEach { appIdentifier in
				appIdentifier.types.forEach { type in
					appIdentifier.platforms.forEach { platform in
						match(
							type: type.rawValue,
							readonly: false,
							generateAppleCerts: false,
							appIdentifier: appIdentifier.identifiers,
							username: .userDefined(appleID),
							teamId: .userDefined(teamID),
							teamName: .userDefined(key.rawValue),
							storageMode: Constants.storageMode,
							s3Region: .userDefined(s3Region),
							s3AccessKey: .userDefined(s3AccessKey),
							s3SecretAccessKey: .userDefined(s3SecretAccessKey),
							s3Bucket: .userDefined(key.s3Bucket ?? s3Bucket),
							s3ObjectPrefix: .userDefined(key.s3ObjectPrefix),
							platform: platform.rawValue,
							deriveCatalystAppIdentifier: .userDefined(appIdentifier.includeMacCatalyst),
							outputPath: .userDefined(outputPath)
						)
					}
				}
			}
		}
	}

	func nukeDevelopmentLane(withOptions options:[String: String]?) {
		desc("Clear developement certificates & provioning profiles")

		let appIdentifiers = getAppIdentifiers(withOptions: options)

		appIdentifiers.forEach { key in
			key.appIdentifiers.forEach { appIdentifier in
				appIdentifier.types.forEach { type in
					matchNuke(
						type: type.rawValue,
						appIdentifier: appIdentifier.identifiers,
						username: .userDefined(appleID),
						teamId: .userDefined(teamID),
						storageMode: Constants.storageMode,
						gitUrl: "",
						s3Region: .userDefined(s3Region),
						s3AccessKey: .userDefined(s3AccessKey),
						s3SecretAccessKey: .userDefined(s3SecretAccessKey),
						s3Bucket: .userDefined(key.s3Bucket ?? s3Bucket),
						s3ObjectPrefix: .userDefined(key.s3ObjectPrefix)
					)
				}
			}
		}
	}
}

No Appfile found

fastlane gems

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

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.5.0
pathname 0.1.0
tsort 0.1.0
rake 13.0.3
CFPropertyList 3.0.3
public_suffix 4.0.6
addressable 2.7.0
artifactory 3.0.15
atomos 0.1.3
aws-eventstream 1.1.1
aws-partitions 1.469.0
aws-sigv4 1.2.3
jmespath 1.4.0
aws-sdk-core 3.114.3
aws-sdk-kms 1.44.0
aws-sdk-s3 1.96.1
babosa 1.0.4
bundler 2.2.15
claide 1.0.3
colored 1.2
colored2 3.1.2
highline 2.0.3
commander 4.6.0
declarative 0.0.20
digest-crc 0.6.3
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
dotenv 2.7.6
emoji_regex 3.2.2
excon 0.82.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-net_http 1.0.1
faraday-net_http_persistent 1.1.0
multipart-post 2.0.0
ruby2_keywords 0.0.4
faraday 1.4.2
http-cookie 1.0.4
faraday-cookie_jar 0.0.7
faraday_middleware 1.0.0
fastimage 2.2.4
gh_inspector 1.1.3
jwt 2.2.3
memoist 0.16.2
multi_json 1.15.0
os 1.1.1
signet 0.15.0
googleauth 0.16.2
httpclient 2.8.3
mini_mime 1.1.0
trailblazer-option 0.1.1
uber 0.1.0
representable 3.1.1
retriable 3.1.2
rexml 3.2.5
webrick 1.7.0
google-apis-core 0.3.0
google-apis-androidpublisher_v3 0.6.0
google-apis-playcustomapp_v1 0.3.0
google-apis-iamcredentials_v1 0.4.0
google-apis-storage_v1 0.4.0
google-cloud-env 1.5.0
google-cloud-errors 1.1.0
google-cloud-core 1.6.0
google-cloud-storage 1.31.1
json 2.5.1
mini_magick 4.11.0
naturally 2.2.1
plist 3.6.0
rubyzip 2.3.0
security 0.1.3
simctl 1.6.8
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
nanaimo 0.3.0
xcodeproj 1.19.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.1

generated on: 2021-06-21

@minuscorp
Copy link
Collaborator

I have seen this report before but I'm unable to reproduce it because it seems to be related to M1 chip.

@fastlane-bot
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane and feel free to tackle this issue yourself 💪

This issue will be auto-closed if there is no reply within 1 month.

@fastlane-bot
Copy link

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍

@rserentill
Copy link

Is there any news on this? we are having a similar issue with M1 chips

@minuscorp
Copy link
Collaborator

Still don't have an M1 machine to fix this

@kikeenrique
Copy link
Contributor

I think this is the same problem as in #18502

@fastlane-bot
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane and feel free to tackle this issue yourself 💪

This issue will be auto-closed if there is no reply within 1 month.

@kikeenrique
Copy link
Contributor

This can be closed as duplicate from #18502.
Both will be fixed when PR #19555 gets merged, which will happen soon.

@roisg
Copy link

roisg commented Feb 3, 2022

Hello, theoretically this issue has been solved in #19555 and should be available in fastlane 2.204.0, but I'm still reproducing the issue in my M1 laptop:

[09:51:13]: $ set -o pipefail && xcodebuild -scheme FastlaneRunner -project ./fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj -destination 'generic/platform=macOS' build | tee /Users/roisg/Library/Logs/gym/App-FastlaneRunner.log | xcpretty
[09:51:17]: FastlaneSwiftRunner project is up-to-date
[09:51:17]: $ ./fastlane/FastlaneRunner lane beta swiftServerPort 2000 > /dev/null
[09:51:17]: ▸ sh: line 1: 42822 Killed: 9 ./fastlane/FastlaneRunner lane beta swiftServerPort 2000 > /dev/null
#<Thread:0x00000001072f2a58 /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:99 run> terminated with exception (report_on_exception is true):
/opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in shell_error!': Exit status of command './fastlane/FastlaneRunner lane beta swiftServerPort 2000 > /dev/null' was 137 instead of 0. (FastlaneCore::Interface::FastlaneShellError) sh: line 1: 42822 Killed: 9 ./fastlane/FastlaneRunner lane beta swiftServerPort 2000 > /dev/null from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing'
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/helper/sh_helper.rb:80:in sh_control_output' from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/helper/sh_helper.rb:12:in sh'
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:104:in block in cruise_swift_lane_in_thread' #<Thread:0x00000001072d94b8 /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:228 run> terminated with exception (report_on_exception is true): /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!': fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds, shutting down (FastlaneCore::Interface::FastlaneError)
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:151:in rescue in listen'
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:146:in listen' from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:38:in start'
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:231:in block in start_socket_thread' /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:148:in accept': execution expired (Timeout::Error)
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:148:in block in listen' from /opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/timeout.rb:112:in timeout'
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:147:in listen' from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:38:in start'
from /opt/homebrew/Cellar/fastlane/2.204.1/libexec/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:231:in `block in start_socket_thread'

Anyone has been able to make it work now with the new version? Is there anything else that I should be updating?

@kikeenrique
Copy link
Contributor

Looks like the FastlaneRunner Xcode project is still not updated.
Could you provide logs executing bundle exec fastlane?
It should be updated in that moment, adding a changes that will sign the binary, which is the reason it's still killed.

@rserentill
Copy link

@kikeenrique I'm not sure if this can be related, but since I upgraded to 2.204.1 (also in 1.204.0) I keep seeing the message:
It looks like your FastlaneSwiftRunner project is not up-to-date
f you don't update it, fastlane could fail
We can try to automatically update it for you, usually this works 🎈 🐐
Should we try to upgrade just your FastlaneSwiftRunner project? (y/n)
Even after I already clicked y key and it said it was updated.
I can only reproduce this locally, it's not happening in our CircleCI jobs.

@kikeenrique
Copy link
Contributor

@rserentill could you provide a bundle exec fastlane --verbose or whatever command you use adding the verbose flag?
It could be an upgrade check not working as expected.

@rserentill
Copy link

@kikeenrique Sure, here is the logs until the message appears. Let me know if you require the logs after it also:

[✔] 🚀
INFO [2022-02-03 10:48:55.82]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/abstract_module_frameworks.rb'.
INFO [2022-02-03 10:48:55.82]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/set_localization_strings.rb'.
INFO [2022-02-03 10:48:55.82]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/generate_app_icon_assets.rb'.
INFO [2022-02-03 10:48:55.82]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/set_localized_changelog.rb'.
INFO [2022-02-03 10:48:55.83]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/upload_ipa_to_s3.rb'.
INFO [2022-02-03 10:48:55.83]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/erase_module_frameworks.rb'.
INFO [2022-02-03 10:48:55.83]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/abstract.rb'.
INFO [2022-02-03 10:48:55.83]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/embed_module_frameworks.rb'.
INFO [2022-02-03 10:48:55.83]: Successfully loaded custom action '/Users/roger/Developer/iOS/newsstand/app/fastlane/actions/get_unlocalized_keys.rb'.
DEBUG [2022-02-03 10:48:55.83]: Checking if there are any plugins that should be loaded...
INFO [2022-02-03 10:48:56.09]: loading manifest: /Users/roger/.rvm/gems/ruby-2.6.5/gems/fastlane-2.204.1/fastlane/swift/upgrade_manifest.json
DEBUG [2022-02-03 10:48:56.21]: No missing groups found, so we don't need to worry about adding new groups
DEBUG [2022-02-03 10:48:56.21]: Actions.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.56/0.9.56
DEBUG [2022-02-03 10:48:56.21]: Fastlane.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.150/0.9.150
DEBUG [2022-02-03 10:48:56.21]: DeliverfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.97/0.9.97
DEBUG [2022-02-03 10:48:56.22]: GymfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.100/0.9.100
DEBUG [2022-02-03 10:48:56.22]: MatchfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.94/0.9.94
DEBUG [2022-02-03 10:48:56.22]: Plugins.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.56/0.9.56
DEBUG [2022-02-03 10:48:56.22]: PrecheckfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.93/0.9.93
DEBUG [2022-02-03 10:48:56.22]: ScanfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.105/0.9.105
DEBUG [2022-02-03 10:48:56.22]: ScreengrabfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.95/0.9.95
DEBUG [2022-02-03 10:48:56.22]: SnapshotfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.89/0.9.89
DEBUG [2022-02-03 10:48:56.22]: LaneFileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: ControlCommand.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: RubyCommand.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: RubyCommandable.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: Runner.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: SocketClient.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: SocketClientDelegateProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: SocketResponse.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: main.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.23]: ArgumentProcessor.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.24]: RunnerArgument.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 10:48:56.24]: FastlaneRunner project has been updated and can be written back to disk
INFO [2022-02-03 10:48:56.24]: It looks like your FastlaneSwiftRunner project is not up-to-date
INFO [2022-02-03 10:48:56.24]: If you don't update it, fastlane could fail
INFO [2022-02-03 10:48:56.24]: We can try to automatically update it for you, usually this works 🎈 🐐
[2022-02-03 10:48:56.24]: Should we try to upgrade just your FastlaneSwiftRunner project? (y/n)

@roisg
Copy link

roisg commented Feb 3, 2022

Same as @rserentill, I'm always being asked to upgrade the FastlaneSwiftRunner even if I click y every time.

These are my logs after executing bundle exec fastlane --verbose:

[✔] 🚀
DEBUG [2022-02-03 11:01:56.30]: Checking if there are any plugins that should be loaded...
objc[46897]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1082742c8). One of the two will be used. Which one is undefined.
objc[46897]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108274318). One of the two will be used. Which one is undefined.
INFO [2022-02-03 11:01:56.39]: loading manifest: /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/swift/upgrade_manifest.json
DEBUG [2022-02-03 11:01:56.42]: No missing groups found, so we don't need to worry about adding new groups
DEBUG [2022-02-03 11:01:56.42]: Actions.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.56/0.9.56
DEBUG [2022-02-03 11:01:56.42]: Fastlane.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.150/0.9.150
DEBUG [2022-02-03 11:01:56.42]: DeliverfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.97/0.9.97
DEBUG [2022-02-03 11:01:56.42]: GymfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.100/0.9.100
DEBUG [2022-02-03 11:01:56.42]: MatchfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.94/0.9.94
DEBUG [2022-02-03 11:01:56.42]: Plugins.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.56/0.9.56
DEBUG [2022-02-03 11:01:56.42]: PrecheckfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.93/0.9.93
DEBUG [2022-02-03 11:01:56.42]: ScanfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.105/0.9.105
DEBUG [2022-02-03 11:01:56.42]: ScreengrabfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.95/0.9.95
DEBUG [2022-02-03 11:01:56.42]: SnapshotfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.89/0.9.89
DEBUG [2022-02-03 11:01:56.42]: LaneFileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: ControlCommand.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: RubyCommand.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: RubyCommandable.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: Runner.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: SocketClient.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: SocketClientDelegateProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: SocketResponse.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: main.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: ArgumentProcessor.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: RunnerArgument.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:01:56.42]: FastlaneRunner project has been updated and can be written back to disk
INFO [2022-02-03 11:01:56.42]: It looks like your FastlaneSwiftRunner project is not up-to-date
INFO [2022-02-03 11:01:56.42]: If you don't update it, fastlane could fail
INFO [2022-02-03 11:01:56.42]: We can try to automatically update it for you, usually this works 🎈 🐐
[2022-02-03 11:01:56.42]: Should we try to upgrade just your FastlaneSwiftRunner project? (y/n)
y
DEBUG [2022-02-03 11:02:00.70]: No missing groups found, so we don't need to worry about adding new groups
DEBUG [2022-02-03 11:02:00.70]: Actions.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.56/0.9.56
DEBUG [2022-02-03 11:02:00.70]: Fastlane.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.150/0.9.150
DEBUG [2022-02-03 11:02:00.70]: DeliverfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.97/0.9.97
DEBUG [2022-02-03 11:02:00.70]: GymfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.100/0.9.100
DEBUG [2022-02-03 11:02:00.70]: MatchfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.94/0.9.94
DEBUG [2022-02-03 11:02:00.70]: Plugins.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.56/0.9.56
DEBUG [2022-02-03 11:02:00.70]: PrecheckfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.93/0.9.93
DEBUG [2022-02-03 11:02:00.70]: ScanfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.105/0.9.105
DEBUG [2022-02-03 11:02:00.70]: ScreengrabfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.95/0.9.95
DEBUG [2022-02-03 11:02:00.70]: SnapshotfileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.89/0.9.89
DEBUG [2022-02-03 11:02:00.70]: LaneFileProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: ControlCommand.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: RubyCommand.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: RubyCommandable.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: Runner.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: SocketClient.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: SocketClientDelegateProtocol.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: SocketResponse.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: main.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: ArgumentProcessor.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: RunnerArgument.swift FastlaneRunnerAPIVersion (bundled/target): 0.9.2/0.9.2
DEBUG [2022-02-03 11:02:00.70]: FastlaneRunner project has been updated and can be written back to disk
DEBUG [2022-02-03 11:02:00.70]: FastlaneRunner project changes have been stored
INFO [2022-02-03 11:02:00.71]: Updated your FastlaneSwiftRunner project with the newest runner code
DEBUG [2022-02-03 11:02:00.71]: Building FastlaneSwiftRunner
WARN [2022-02-03 11:02:00.73]: Resolving Swift Package Manager dependencies...
INFO [2022-02-03 11:02:00.73]: $ xcodebuild -resolvePackageDependencies -scheme FastlaneRunner -project ./fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj
INFO [2022-02-03 11:02:00.80]: ▸ objc[46899]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1086ac2c8). One of the two will be used. Which one is undefined.
INFO [2022-02-03 11:02:00.80]: ▸ objc[46899]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1086ac318). One of the two will be used. Which one is undefined.
INFO [2022-02-03 11:02:01.07]: ▸ Command line invocation:
INFO [2022-02-03 11:02:01.07]: ▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -scheme FastlaneRunner -project ./fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj
INFO [2022-02-03 11:02:01.07]: ▸ User defaults from command line:
INFO [2022-02-03 11:02:01.07]: ▸ IDEPackageSupportUseBuiltinSCM = YES
INFO [2022-02-03 11:02:01.35]: ▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
INFO [2022-02-03 11:02:01.35]: ▸ { platform:macOS, arch:arm64, id:00006000-001C30D80262801E }
INFO [2022-02-03 11:02:01.35]: ▸ { platform:macOS, arch:x86_64, id:00006000-001C30D80262801E }
INFO [2022-02-03 11:02:01.35]: ▸ { platform:macOS, name:Any Mac }
INFO [2022-02-03 11:02:01.35]: ▸ resolved source packages:
INFO [2022-02-03 11:02:01.35]: $ xcodebuild -showBuildSettings -scheme FastlaneRunner -project ./fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj
objc[46905]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1084ac2c8). One of the two will be used. Which one is undefined.
objc[46905]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1084ac318). One of the two will be used. Which one is undefined.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-001C30D80262801E }
{ platform:macOS, arch:x86_64, id:00006000-001C30D80262801E }
{ platform:macOS, name:Any Mac }
DEBUG [2022-02-03 11:02:02.07]: Parsing project file '/Users/roisg/Dev/workspaces/wisk-ios/Wisk/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj' to find selected provisioning profiles
DEBUG [2022-02-03 11:02:02.07]: Finding provision profiles for 'Release'
DEBUG [2022-02-03 11:02:02.07]: Merging provisioning profile mappings
DEBUG [2022-02-03 11:02:02.07]: -------------------------------------
DEBUG [2022-02-03 11:02:02.07]: Primary provisioning profile mapping:
DEBUG [2022-02-03 11:02:02.07]: {}
DEBUG [2022-02-03 11:02:02.07]: Secondary provisioning profile mapping:
DEBUG [2022-02-03 11:02:02.07]: {}
DEBUG [2022-02-03 11:02:02.07]: Resulting in the following mapping:
DEBUG [2022-02-03 11:02:02.07]: {}
INFO [2022-02-03 11:02:02.08]: $ set -o pipefail && xcodebuild -scheme FastlaneRunner -project ./fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj -destination 'generic/platform=macOS' build | tee /Users/roisg/Library/Logs/gym/App-FastlaneRunner.log | xcpretty
INFO [2022-02-03 11:02:02.15]: ▸ objc[46919]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f002c8). One of the two will be used. Which one is undefined.
INFO [2022-02-03 11:02:02.15]: ▸ objc[46919]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e0c77180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107f00318). One of the two will be used. Which one is undefined.
INFO [2022-02-03 11:02:02.83]: ▸ Running script 'Run Script'
INFO [2022-02-03 11:02:02.84]: ▸ Build Succeeded
DEBUG [2022-02-03 11:02:02.85]: Checking for new user-provided tool configuration files
INFO [2022-02-03 11:02:02.85]: FastlaneSwiftRunner project is up-to-date
DEBUG [2022-02-03 11:02:02.85]: Waiting for 5 seconds for a connection from FastlaneRunner
INFO [2022-02-03 11:02:03.11]: $ ./fastlane/FastlaneRunner lane logMode verbose swiftServerPort 2000
#<Thread:0x0000000101ca2040@/Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:99 run> terminated with exception (report_on_exception is true):
/Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in shell_error!': Exit status of command './fastlane/FastlaneRunner lane logMode verbose swiftServerPort 2000' was instead of 0. (FastlaneCore::Interface::FastlaneShellError) from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/helper/sh_helper.rb:80:in sh_control_output' from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/helper/sh_helper.rb:12:in sh'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:101:in block in cruise_swift_lane_in_thread' #<Thread:0x0000000101c90430@/Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:228 run> terminated with exception (report_on_exception is true): /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!': fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds, shutting down (FastlaneCore::Interface::FastlaneError)
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:151:in rescue in listen'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:146:in listen' from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:38:in start'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:231:in block in start_socket_thread' /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:148:in accept': execution expired (Timeout::Error)
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:148:in block in listen' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:108:in timeout'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:147:in listen' from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:38:in start'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:231:in block in start_socket_thread' WARN [2022-02-03 11:02:07.86]: Lane Context: INFO [2022-02-03 11:02:07.86]: {:LANE_NAME=>nil} ERROR [2022-02-03 11:02:07.86]: fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds, shutting down ERROR [2022-02-03 11:02:07.87]: fastlane finished with errors bundler: failed to load command: fastlane (/Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/bin/fastlane) /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in user_error!': [!] fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds, shutting down (FastlaneCore::Interface::FastlaneError)
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing' from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:151:in rescue in listen'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:146:in listen' from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:38:in start'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:231:in block in start_socket_thread' /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:148:in accept': execution expired (Timeout::Error)
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:148:in block in listen' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:108:in timeout'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:147:in listen' from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/server/socket_server.rb:38:in start'
from /Users/roisg/Dev/workspaces/wisk-ios/Wisk/vendor/bundle/ruby/2.6.0/gems/fastlane-2.204.1/fastlane/lib/fastlane/swift_lane_manager.rb:231:in `block in start_socket_thread'

@kikeenrique
Copy link
Contributor

I think I now why it's always asking for upgrade. I would consider a PR soon.
It's not checking properly if it needs to upgrade something inside FastlaneSwiftRunner.xcodeproj, even if it's properly upgraded. It's annoying but it should work as expected.

@roisg Can you see a build phase in FastlaneSwiftRunner.xcodeproj named FastlaneRunnerCopySigned?
Screenshot 2022-02-03 at 19 24 15

@roisg
Copy link

roisg commented Feb 4, 2022

@kikeenrique yes, I see that phase:

image

@kikeenrique
Copy link
Contributor

Hm, it's weird, the new phase is there, but the old, "Run Script" seems to be still there.
Maybe that phase is not exactly as expected by the upgrader and was not removed.
If that phase is a cd and then a cp, you can remove it manually.

The other change you could verify is related to signing.
Screenshot 2022-02-04 at 12 07 12

Signed binaries in macOS can give problems due to caching, so other option is try removing the binary manually rm fastlane/FastlaneRunner and rebuilding.

@roisg
Copy link

roisg commented Feb 4, 2022

I have just found out that just after restarting my laptop, the fastlane build works perfectly with the 2.204.2 version. Now, if the build fails, or even if it success, re-running the same fastlane build will throw the error:

Exit status of command './fastlane/FastlaneRunner lane beta swiftServerPort 2000 > /dev/null' was 137 instead of 0. (FastlaneCore::Interface::FastlaneShellError) sh: line 1: 18736 Killed: 9 ./fastlane/FastlaneRunner lane betaAndStore swiftServerPort 2000 > /dev/null

And it will be thrown forever until I restart my computer again. So it seems something is not being properly freed between executions?

@kikeenrique
Copy link
Contributor

kikeenrique commented Feb 4, 2022

That's what I meant with Signed binaries in macOS can give problems due to caching. I've read in an apple forums about this problems, check https://developer.apple.com/forums/thread/669145 or https://developer.apple.com/documentation/security/updating_mac_software.

But, the Code Sign on copy shall prevent these problems, at least I didn't manage to reproduce them again.
Did you review the build phase "Run Script"?
That phases uses cp, which doesn't behave as expected with signed binaries, and may be the root of the problem.

@roisg
Copy link

roisg commented Feb 4, 2022

Yes, @kikeenrique, you're right. After removing the "run script" phase that was doing a cp, I can run the fastlane build multiple times without getting the error.

kikeenrique added a commit to kikeenrique/fastlane that referenced this issue Feb 4, 2022
+ fix upgrades checks to avoid false not up-to-date messages.
joshdholtz pushed a commit that referenced this issue Feb 11, 2022
+ fix upgrades checks to avoid false not up-to-date messages.
This was referenced Feb 11, 2022
@fastlane-bot
Copy link

The pull request #19914 that closed this issue was merged and released as part of fastlane 2.204.3 🚀
Please let us know if the functionality works as expected as a reply here. If it does not, please open a new issue. Thanks!

@fastlane fastlane locked and limited conversation to collaborators Apr 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants