fastlane 2.210.0 → 2.211.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +100 -100
- data/deliver/lib/deliver/app_screenshot.rb +17 -0
- data/deliver/lib/deliver/runner.rb +5 -2
- data/fastlane/lib/fastlane/actions/docs/build_app.md +5 -5
- data/fastlane/lib/fastlane/actions/docs/run_tests.md +1 -1
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +14 -4
- data/fastlane/lib/fastlane/actions/xcode_install.rb +5 -1
- data/fastlane/lib/fastlane/actions/xcode_select.rb +1 -1
- data/fastlane/lib/fastlane/actions/xcodes.rb +137 -0
- data/fastlane/lib/fastlane/actions/xcversion.rb +10 -15
- data/fastlane/lib/fastlane/helper/xcodes_helper.rb +28 -0
- data/fastlane/lib/fastlane/helper/xcversion_helper.rb +0 -9
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/DeliverfileProtocol.swift +1 -1
- data/fastlane/swift/Fastlane.swift +66 -3
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/GymfileProtocol.swift +1 -1
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/MatchfileProtocol.swift +5 -1
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +1 -1
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
- data/fastlane/swift/formatting/Brewfile.lock.json +20 -15
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +2 -3
- data/frameit/lib/frameit/device.rb +1 -1
- data/match/lib/match/change_password.rb +2 -0
- data/match/lib/match/commands_generator.rb +2 -1
- data/match/lib/match/generator.rb +1 -0
- data/match/lib/match/importer.rb +2 -0
- data/match/lib/match/migrate.rb +4 -3
- data/match/lib/match/nuke.rb +2 -0
- data/match/lib/match/options.rb +5 -0
- data/match/lib/match/runner.rb +5 -2
- data/pilot/lib/pilot/build_manager.rb +5 -2
- data/sigh/lib/sigh/options.rb +5 -0
- data/sigh/lib/sigh/runner.rb +3 -1
- data/snapshot/lib/assets/SnapshotHelper.swift +2 -2
- data/spaceship/lib/spaceship/connect_api/models/actor.rb +26 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +5 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +10 -10
- data/spaceship/lib/spaceship/connect_api/models/device.rb +3 -0
- data/spaceship/lib/spaceship/connect_api/models/resolution_center_message.rb +29 -0
- data/spaceship/lib/spaceship/connect_api/models/resolution_center_thread.rb +67 -0
- data/spaceship/lib/spaceship/connect_api/models/review_rejection.rb +19 -0
- data/spaceship/lib/spaceship/connect_api/models/review_submission.rb +12 -0
- data/spaceship/lib/spaceship/connect_api/token.rb +2 -5
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +23 -0
- data/spaceship/lib/spaceship/connect_api.rb +5 -0
- metadata +25 -19
@@ -0,0 +1,137 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
XCODES_XCODE_PATH = :XCODES_XCODE_PATH
|
5
|
+
end
|
6
|
+
|
7
|
+
class XcodesAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
binary = params[:binary_path]
|
10
|
+
xcodes_raw_version = Actions.sh("#{binary} version", log: false)
|
11
|
+
xcodes_version = Gem::Version.new(xcodes_raw_version)
|
12
|
+
UI.message("Running xcodes version #{xcodes_version}")
|
13
|
+
if xcodes_version < Gem::Version.new("1.1.0")
|
14
|
+
UI.user_error!([
|
15
|
+
"xcodes action requires the minimum version of xcodes binary to be v1.1.0.",
|
16
|
+
"Please update xcodes. If you installed it via Homebrew, this can be done via 'brew upgrade xcodes'"
|
17
|
+
].join(" "))
|
18
|
+
end
|
19
|
+
|
20
|
+
version = params[:version]
|
21
|
+
command = []
|
22
|
+
command << binary
|
23
|
+
|
24
|
+
if (xcodes_args = params[:xcodes_args])
|
25
|
+
command << xcodes_args
|
26
|
+
Actions.sh(command.join(" "))
|
27
|
+
elsif !params[:select_for_current_build_only]
|
28
|
+
command << "install"
|
29
|
+
command << "'#{version}'"
|
30
|
+
command << "--update" if params[:update_list]
|
31
|
+
command << "--select"
|
32
|
+
Actions.sh(command.join(" "))
|
33
|
+
end
|
34
|
+
|
35
|
+
command = []
|
36
|
+
command << binary
|
37
|
+
command << "installed"
|
38
|
+
command << "'#{version}'"
|
39
|
+
# Prints something like /Applications/Xcode-14.app
|
40
|
+
xcode_path = Actions.sh(command.join(" ")).strip
|
41
|
+
xcode_developer_path = File.join(xcode_path, "/Contents/Developer")
|
42
|
+
|
43
|
+
UI.message("Setting Xcode version '#{version}' at '#{xcode_path}' for all build steps")
|
44
|
+
ENV["DEVELOPER_DIR"] = xcode_developer_path
|
45
|
+
Actions.lane_context[SharedValues::XCODES_XCODE_PATH] = xcode_developer_path
|
46
|
+
return xcode_path
|
47
|
+
end
|
48
|
+
|
49
|
+
#####################################################
|
50
|
+
# @!group Documentation
|
51
|
+
#####################################################
|
52
|
+
|
53
|
+
def self.description
|
54
|
+
"Make sure a certain version of Xcode is installed, installing it only if needed"
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.details
|
58
|
+
[
|
59
|
+
"Makes sure a specific version of Xcode is installed. If that's not the case, it will automatically be downloaded by [xcodes](https://github.com/RobotsAndPencils/xcodes).",
|
60
|
+
"This will make sure to use the correct Xcode version for later actions.",
|
61
|
+
"Note that this action depends on [xcodes](https://github.com/RobotsAndPencils/xcodes) CLI, so make sure you have it installed in your environment. For the installation guide, see: https://github.com/RobotsAndPencils/xcodes#installation"
|
62
|
+
].join("\n")
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.available_options
|
66
|
+
[
|
67
|
+
FastlaneCore::ConfigItem.new(key: :version,
|
68
|
+
env_name: "FL_XCODE_VERSION",
|
69
|
+
description: "The version number of the version of Xcode to install. Defaults to the value specified in the .xcode-version file",
|
70
|
+
default_value: Helper::XcodesHelper.read_xcode_version_file,
|
71
|
+
default_value_dynamic: true,
|
72
|
+
verify_block: Helper::XcodesHelper::Verify.method(:requirement)),
|
73
|
+
FastlaneCore::ConfigItem.new(key: :update_list,
|
74
|
+
env_name: "FL_XCODES_UPDATE_LIST",
|
75
|
+
description: "Whether the list of available Xcode versions should be updated before running the install command",
|
76
|
+
type: Boolean,
|
77
|
+
default_value: true),
|
78
|
+
FastlaneCore::ConfigItem.new(key: :select_for_current_build_only,
|
79
|
+
env_name: "FL_XCODES_SELECT_FOR_CURRENT_BUILD_ONLY",
|
80
|
+
description: [
|
81
|
+
"When true, it won't attempt to install an Xcode version, just find the installed Xcode version that best matches the passed version argument, and select it for the current build steps.",
|
82
|
+
"It doesn't change the global Xcode version (e.g. via 'xcrun xcode-select'), which would require sudo permissions — when this option is true, this action doesn't require sudo permissions"
|
83
|
+
].join(" "),
|
84
|
+
type: Boolean,
|
85
|
+
default_value: false),
|
86
|
+
FastlaneCore::ConfigItem.new(key: :binary_path,
|
87
|
+
env_name: "FL_XCODES_BINARY_PATH",
|
88
|
+
description: "Where the xcodes binary lives on your system (full path)",
|
89
|
+
default_value: Helper::XcodesHelper.find_xcodes_binary_path,
|
90
|
+
default_value_dynamic: true,
|
91
|
+
verify_block: proc do |value|
|
92
|
+
UI.user_error!("'xcodes' doesn't seem to be installed. Please follow the installation guide at https://github.com/RobotsAndPencils/xcodes#installation before proceeding") if value.empty?
|
93
|
+
UI.user_error!("Couldn't find xcodes binary at path '#{value}'") unless File.exist?(value)
|
94
|
+
end),
|
95
|
+
FastlaneCore::ConfigItem.new(key: :xcodes_args,
|
96
|
+
env_name: "FL_XCODES_ARGS",
|
97
|
+
description: "Pass in xcodes command line arguments directly. When present, other parameters are ignored and only this parameter is used to build the command to be executed",
|
98
|
+
type: :shell_string,
|
99
|
+
optional: true)
|
100
|
+
]
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.output
|
104
|
+
[
|
105
|
+
['XCODES_XCODE_PATH', 'The path to the newly installed Xcode version']
|
106
|
+
]
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.return_value
|
110
|
+
"The path to the newly installed Xcode version"
|
111
|
+
end
|
112
|
+
|
113
|
+
def self.return_type
|
114
|
+
:string
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.authors
|
118
|
+
["rogerluan"]
|
119
|
+
end
|
120
|
+
|
121
|
+
def self.is_supported?(platform)
|
122
|
+
[:ios, :mac].include?(platform)
|
123
|
+
end
|
124
|
+
|
125
|
+
def self.example_code
|
126
|
+
[
|
127
|
+
'xcodes(version: "14.1")',
|
128
|
+
'xcodes # When missing, the version value defaults to the value specified in the .xcode-version file'
|
129
|
+
]
|
130
|
+
end
|
131
|
+
|
132
|
+
def self.category
|
133
|
+
:building
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -15,16 +15,6 @@ module Fastlane
|
|
15
15
|
ENV["DEVELOPER_DIR"] = File.join(xcode.path, "/Contents/Developer")
|
16
16
|
end
|
17
17
|
|
18
|
-
def self.read_xcode_version_file
|
19
|
-
xcode_version_paths = Dir.glob(".xcode-version")
|
20
|
-
|
21
|
-
if xcode_version_paths.first
|
22
|
-
return File.read(xcode_version_paths.first).strip
|
23
|
-
end
|
24
|
-
|
25
|
-
return nil
|
26
|
-
end
|
27
|
-
|
28
18
|
def self.description
|
29
19
|
"Select an Xcode to use by version specifier"
|
30
20
|
end
|
@@ -44,10 +34,10 @@ module Fastlane
|
|
44
34
|
[
|
45
35
|
FastlaneCore::ConfigItem.new(key: :version,
|
46
36
|
env_name: "FL_XCODE_VERSION",
|
47
|
-
description: "The version of Xcode to select specified as a Gem::Version requirement string (e.g. '~> 7.1.0')",
|
48
|
-
default_value:
|
37
|
+
description: "The version of Xcode to select specified as a Gem::Version requirement string (e.g. '~> 7.1.0'). Defaults to the value specified in the .xcode-version file ",
|
38
|
+
default_value: Helper::XcodesHelper.read_xcode_version_file,
|
49
39
|
default_value_dynamic: true,
|
50
|
-
verify_block: Helper::
|
40
|
+
verify_block: Helper::XcodesHelper::Verify.method(:requirement))
|
51
41
|
]
|
52
42
|
end
|
53
43
|
|
@@ -58,12 +48,17 @@ module Fastlane
|
|
58
48
|
def self.example_code
|
59
49
|
[
|
60
50
|
'xcversion(version: "8.1") # Selects Xcode 8.1.0',
|
61
|
-
'xcversion(version: "~> 8.1.0") # Selects the latest installed version from the 8.1.x set'
|
51
|
+
'xcversion(version: "~> 8.1.0") # Selects the latest installed version from the 8.1.x set',
|
52
|
+
'xcversion # When missing, the version value defaults to the value specified in the .xcode-version file'
|
62
53
|
]
|
63
54
|
end
|
64
55
|
|
65
56
|
def self.category
|
66
|
-
:
|
57
|
+
:deprecated
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.deprecated_notes
|
61
|
+
"The xcode-install gem, which this action depends on, has been sunset. Please migrate to [xcodes](https://docs.fastlane.tools/actions/xcodes). You can find a migration guide here: [xcpretty/xcode-install/MIGRATION.md](https://github.com/xcpretty/xcode-install/blob/master/MIGRATION.md)"
|
67
62
|
end
|
68
63
|
end
|
69
64
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Helper
|
3
|
+
class XcodesHelper
|
4
|
+
def self.read_xcode_version_file
|
5
|
+
xcode_version_paths = Dir.glob(".xcode-version")
|
6
|
+
|
7
|
+
if xcode_version_paths.first
|
8
|
+
return File.read(xcode_version_paths.first).strip
|
9
|
+
end
|
10
|
+
|
11
|
+
return nil
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.find_xcodes_binary_path
|
15
|
+
`which xcodes`.strip
|
16
|
+
end
|
17
|
+
|
18
|
+
module Verify
|
19
|
+
def self.requirement(req)
|
20
|
+
UI.user_error!("Version must be specified") if req.nil? || req.to_s.strip.size == 0
|
21
|
+
Gem::Requirement.new(req.to_s)
|
22
|
+
rescue Gem::Requirement::BadRequirementError
|
23
|
+
UI.user_error!("The requirement '#{req}' is not a valid RubyGems style requirement")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -11,15 +11,6 @@ module Fastlane
|
|
11
11
|
req.satisfied_by?(Gem::Version.new(xcode.version))
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
15
|
-
module Verify
|
16
|
-
def self.requirement(req)
|
17
|
-
UI.user_error!("Version must be specified") if req.nil? || req.to_s.strip.size == 0
|
18
|
-
Gem::Requirement.new(req.to_s)
|
19
|
-
rescue Gem::Requirement::BadRequirementError
|
20
|
-
UI.user_error!("The requirement '#{req}' is not a valid RubyGems style requirement")
|
21
|
-
end
|
22
|
-
end
|
23
14
|
end
|
24
15
|
end
|
25
16
|
end
|
@@ -4933,6 +4933,7 @@ public func getManagedPlayStorePublishingRights(jsonKey: OptionalConfigValue<Str
|
|
4933
4933
|
- development: Renew the development certificate instead of the production one
|
4934
4934
|
- skipInstall: By default, the certificate will be added to your local machine. Setting this flag will skip this action
|
4935
4935
|
- force: Renew provisioning profiles regardless of its state - to automatically add all devices for ad hoc profiles
|
4936
|
+
- includeMacInProfiles: Include Apple Silicon Mac devices in provisioning profiles for iOS/iPadOS apps
|
4936
4937
|
- appIdentifier: The bundle identifier of your app
|
4937
4938
|
- apiKeyPath: Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)
|
4938
4939
|
- apiKey: Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-hash-option)
|
@@ -4962,6 +4963,7 @@ public func getManagedPlayStorePublishingRights(jsonKey: OptionalConfigValue<Str
|
|
4962
4963
|
development: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
4963
4964
|
skipInstall: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
4964
4965
|
force: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
4966
|
+
includeMacInProfiles: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
4965
4967
|
appIdentifier: String,
|
4966
4968
|
apiKeyPath: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
4967
4969
|
apiKey: OptionalConfigValue<[String: Any]?> = .fastlaneDefault(nil),
|
@@ -4987,6 +4989,7 @@ public func getManagedPlayStorePublishingRights(jsonKey: OptionalConfigValue<Str
|
|
4987
4989
|
let developmentArg = development.asRubyArgument(name: "development", type: nil)
|
4988
4990
|
let skipInstallArg = skipInstall.asRubyArgument(name: "skip_install", type: nil)
|
4989
4991
|
let forceArg = force.asRubyArgument(name: "force", type: nil)
|
4992
|
+
let includeMacInProfilesArg = includeMacInProfiles.asRubyArgument(name: "include_mac_in_profiles", type: nil)
|
4990
4993
|
let appIdentifierArg = RubyCommand.Argument(name: "app_identifier", value: appIdentifier, type: nil)
|
4991
4994
|
let apiKeyPathArg = apiKeyPath.asRubyArgument(name: "api_key_path", type: nil)
|
4992
4995
|
let apiKeyArg = apiKey.asRubyArgument(name: "api_key", type: nil)
|
@@ -5011,6 +5014,7 @@ public func getManagedPlayStorePublishingRights(jsonKey: OptionalConfigValue<Str
|
|
5011
5014
|
developmentArg,
|
5012
5015
|
skipInstallArg,
|
5013
5016
|
forceArg,
|
5017
|
+
includeMacInProfilesArg,
|
5014
5018
|
appIdentifierArg,
|
5015
5019
|
apiKeyPathArg,
|
5016
5020
|
apiKeyArg,
|
@@ -6660,6 +6664,7 @@ public func makeChangelogFromJenkins(fallbackChangelog: String = "",
|
|
6660
6664
|
- keychainPassword: This might be required the first time you access certificates on a new mac. For the login/default keychain this is your macOS account password
|
6661
6665
|
- force: Renew the provisioning profiles every time you run match
|
6662
6666
|
- forceForNewDevices: Renew the provisioning profiles if the device count on the developer portal has changed. Ignored for profile types 'appstore' and 'developer_id'
|
6667
|
+
- includeMacInProfiles: Include Apple Silicon Mac devices in provisioning profiles for iOS/iPadOS apps
|
6663
6668
|
- includeAllCertificates: Include all matching certificates in the provisioning profile. Works only for the 'development' provisioning profile type
|
6664
6669
|
- forceForNewCertificates: Renew the provisioning profiles if the certificate count on the developer portal has changed. Works only for the 'development' provisioning profile type. Requires 'include_all_certificates' option to be 'true'
|
6665
6670
|
- skipConfirmation: Disables confirmation prompts during nuke, answering them with yes
|
@@ -6712,6 +6717,7 @@ public func match(type: String = matchfile.type,
|
|
6712
6717
|
keychainPassword: OptionalConfigValue<String?> = .fastlaneDefault(matchfile.keychainPassword),
|
6713
6718
|
force: OptionalConfigValue<Bool> = .fastlaneDefault(matchfile.force),
|
6714
6719
|
forceForNewDevices: OptionalConfigValue<Bool> = .fastlaneDefault(matchfile.forceForNewDevices),
|
6720
|
+
includeMacInProfiles: OptionalConfigValue<Bool> = .fastlaneDefault(matchfile.includeMacInProfiles),
|
6715
6721
|
includeAllCertificates: OptionalConfigValue<Bool> = .fastlaneDefault(matchfile.includeAllCertificates),
|
6716
6722
|
forceForNewCertificates: OptionalConfigValue<Bool> = .fastlaneDefault(matchfile.forceForNewCertificates),
|
6717
6723
|
skipConfirmation: OptionalConfigValue<Bool> = .fastlaneDefault(matchfile.skipConfirmation),
|
@@ -6762,6 +6768,7 @@ public func match(type: String = matchfile.type,
|
|
6762
6768
|
let keychainPasswordArg = keychainPassword.asRubyArgument(name: "keychain_password", type: nil)
|
6763
6769
|
let forceArg = force.asRubyArgument(name: "force", type: nil)
|
6764
6770
|
let forceForNewDevicesArg = forceForNewDevices.asRubyArgument(name: "force_for_new_devices", type: nil)
|
6771
|
+
let includeMacInProfilesArg = includeMacInProfiles.asRubyArgument(name: "include_mac_in_profiles", type: nil)
|
6765
6772
|
let includeAllCertificatesArg = includeAllCertificates.asRubyArgument(name: "include_all_certificates", type: nil)
|
6766
6773
|
let forceForNewCertificatesArg = forceForNewCertificates.asRubyArgument(name: "force_for_new_certificates", type: nil)
|
6767
6774
|
let skipConfirmationArg = skipConfirmation.asRubyArgument(name: "skip_confirmation", type: nil)
|
@@ -6811,6 +6818,7 @@ public func match(type: String = matchfile.type,
|
|
6811
6818
|
keychainPasswordArg,
|
6812
6819
|
forceArg,
|
6813
6820
|
forceForNewDevicesArg,
|
6821
|
+
includeMacInProfilesArg,
|
6814
6822
|
includeAllCertificatesArg,
|
6815
6823
|
forceForNewCertificatesArg,
|
6816
6824
|
skipConfirmationArg,
|
@@ -6871,6 +6879,7 @@ public func match(type: String = matchfile.type,
|
|
6871
6879
|
- keychainPassword: This might be required the first time you access certificates on a new mac. For the login/default keychain this is your macOS account password
|
6872
6880
|
- force: Renew the provisioning profiles every time you run match
|
6873
6881
|
- forceForNewDevices: Renew the provisioning profiles if the device count on the developer portal has changed. Ignored for profile types 'appstore' and 'developer_id'
|
6882
|
+
- includeMacInProfiles: Include Apple Silicon Mac devices in provisioning profiles for iOS/iPadOS apps
|
6874
6883
|
- includeAllCertificates: Include all matching certificates in the provisioning profile. Works only for the 'development' provisioning profile type
|
6875
6884
|
- forceForNewCertificates: Renew the provisioning profiles if the certificate count on the developer portal has changed. Works only for the 'development' provisioning profile type. Requires 'include_all_certificates' option to be 'true'
|
6876
6885
|
- skipConfirmation: Disables confirmation prompts during nuke, answering them with yes
|
@@ -6927,6 +6936,7 @@ public func matchNuke(type: String = "development",
|
|
6927
6936
|
keychainPassword: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
6928
6937
|
force: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
6929
6938
|
forceForNewDevices: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
6939
|
+
includeMacInProfiles: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
6930
6940
|
includeAllCertificates: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
6931
6941
|
forceForNewCertificates: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
6932
6942
|
skipConfirmation: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
@@ -6977,6 +6987,7 @@ public func matchNuke(type: String = "development",
|
|
6977
6987
|
let keychainPasswordArg = keychainPassword.asRubyArgument(name: "keychain_password", type: nil)
|
6978
6988
|
let forceArg = force.asRubyArgument(name: "force", type: nil)
|
6979
6989
|
let forceForNewDevicesArg = forceForNewDevices.asRubyArgument(name: "force_for_new_devices", type: nil)
|
6990
|
+
let includeMacInProfilesArg = includeMacInProfiles.asRubyArgument(name: "include_mac_in_profiles", type: nil)
|
6980
6991
|
let includeAllCertificatesArg = includeAllCertificates.asRubyArgument(name: "include_all_certificates", type: nil)
|
6981
6992
|
let forceForNewCertificatesArg = forceForNewCertificates.asRubyArgument(name: "force_for_new_certificates", type: nil)
|
6982
6993
|
let skipConfirmationArg = skipConfirmation.asRubyArgument(name: "skip_confirmation", type: nil)
|
@@ -7026,6 +7037,7 @@ public func matchNuke(type: String = "development",
|
|
7026
7037
|
keychainPasswordArg,
|
7027
7038
|
forceArg,
|
7028
7039
|
forceForNewDevicesArg,
|
7040
|
+
includeMacInProfilesArg,
|
7029
7041
|
includeAllCertificatesArg,
|
7030
7042
|
forceForNewCertificatesArg,
|
7031
7043
|
skipConfirmationArg,
|
@@ -9876,6 +9888,7 @@ public func setupTravis(force: OptionalConfigValue<Bool> = .fastlaneDefault(fals
|
|
9876
9888
|
- development: Renew the development certificate instead of the production one
|
9877
9889
|
- skipInstall: By default, the certificate will be added to your local machine. Setting this flag will skip this action
|
9878
9890
|
- force: Renew provisioning profiles regardless of its state - to automatically add all devices for ad hoc profiles
|
9891
|
+
- includeMacInProfiles: Include Apple Silicon Mac devices in provisioning profiles for iOS/iPadOS apps
|
9879
9892
|
- appIdentifier: The bundle identifier of your app
|
9880
9893
|
- apiKeyPath: Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)
|
9881
9894
|
- apiKey: Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-hash-option)
|
@@ -9905,6 +9918,7 @@ public func setupTravis(force: OptionalConfigValue<Bool> = .fastlaneDefault(fals
|
|
9905
9918
|
development: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
9906
9919
|
skipInstall: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
9907
9920
|
force: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
9921
|
+
includeMacInProfiles: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
9908
9922
|
appIdentifier: String,
|
9909
9923
|
apiKeyPath: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
9910
9924
|
apiKey: OptionalConfigValue<[String: Any]?> = .fastlaneDefault(nil),
|
@@ -9930,6 +9944,7 @@ public func setupTravis(force: OptionalConfigValue<Bool> = .fastlaneDefault(fals
|
|
9930
9944
|
let developmentArg = development.asRubyArgument(name: "development", type: nil)
|
9931
9945
|
let skipInstallArg = skipInstall.asRubyArgument(name: "skip_install", type: nil)
|
9932
9946
|
let forceArg = force.asRubyArgument(name: "force", type: nil)
|
9947
|
+
let includeMacInProfilesArg = includeMacInProfiles.asRubyArgument(name: "include_mac_in_profiles", type: nil)
|
9933
9948
|
let appIdentifierArg = RubyCommand.Argument(name: "app_identifier", value: appIdentifier, type: nil)
|
9934
9949
|
let apiKeyPathArg = apiKeyPath.asRubyArgument(name: "api_key_path", type: nil)
|
9935
9950
|
let apiKeyArg = apiKey.asRubyArgument(name: "api_key", type: nil)
|
@@ -9954,6 +9969,7 @@ public func setupTravis(force: OptionalConfigValue<Bool> = .fastlaneDefault(fals
|
|
9954
9969
|
developmentArg,
|
9955
9970
|
skipInstallArg,
|
9956
9971
|
forceArg,
|
9972
|
+
includeMacInProfilesArg,
|
9957
9973
|
appIdentifierArg,
|
9958
9974
|
apiKeyPathArg,
|
9959
9975
|
apiKeyArg,
|
@@ -11081,6 +11097,7 @@ public func swiftlint(mode: String = "lint",
|
|
11081
11097
|
- keychainPassword: This might be required the first time you access certificates on a new mac. For the login/default keychain this is your macOS account password
|
11082
11098
|
- force: Renew the provisioning profiles every time you run match
|
11083
11099
|
- forceForNewDevices: Renew the provisioning profiles if the device count on the developer portal has changed. Ignored for profile types 'appstore' and 'developer_id'
|
11100
|
+
- includeMacInProfiles: Include Apple Silicon Mac devices in provisioning profiles for iOS/iPadOS apps
|
11084
11101
|
- includeAllCertificates: Include all matching certificates in the provisioning profile. Works only for the 'development' provisioning profile type
|
11085
11102
|
- forceForNewCertificates: Renew the provisioning profiles if the certificate count on the developer portal has changed. Works only for the 'development' provisioning profile type. Requires 'include_all_certificates' option to be 'true'
|
11086
11103
|
- skipConfirmation: Disables confirmation prompts during nuke, answering them with yes
|
@@ -11133,6 +11150,7 @@ public func syncCodeSigning(type: String = "development",
|
|
11133
11150
|
keychainPassword: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
11134
11151
|
force: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
11135
11152
|
forceForNewDevices: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
11153
|
+
includeMacInProfiles: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
11136
11154
|
includeAllCertificates: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
11137
11155
|
forceForNewCertificates: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
11138
11156
|
skipConfirmation: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
@@ -11183,6 +11201,7 @@ public func syncCodeSigning(type: String = "development",
|
|
11183
11201
|
let keychainPasswordArg = keychainPassword.asRubyArgument(name: "keychain_password", type: nil)
|
11184
11202
|
let forceArg = force.asRubyArgument(name: "force", type: nil)
|
11185
11203
|
let forceForNewDevicesArg = forceForNewDevices.asRubyArgument(name: "force_for_new_devices", type: nil)
|
11204
|
+
let includeMacInProfilesArg = includeMacInProfiles.asRubyArgument(name: "include_mac_in_profiles", type: nil)
|
11186
11205
|
let includeAllCertificatesArg = includeAllCertificates.asRubyArgument(name: "include_all_certificates", type: nil)
|
11187
11206
|
let forceForNewCertificatesArg = forceForNewCertificates.asRubyArgument(name: "force_for_new_certificates", type: nil)
|
11188
11207
|
let skipConfirmationArg = skipConfirmation.asRubyArgument(name: "skip_confirmation", type: nil)
|
@@ -11232,6 +11251,7 @@ public func syncCodeSigning(type: String = "development",
|
|
11232
11251
|
keychainPasswordArg,
|
11233
11252
|
forceArg,
|
11234
11253
|
forceForNewDevicesArg,
|
11254
|
+
includeMacInProfilesArg,
|
11235
11255
|
includeAllCertificatesArg,
|
11236
11256
|
forceForNewCertificatesArg,
|
11237
11257
|
skipConfirmationArg,
|
@@ -11732,6 +11752,7 @@ public func updateAppIdentifier(xcodeproj: String,
|
|
11732
11752
|
- parameters:
|
11733
11753
|
- path: Path to your Xcode project
|
11734
11754
|
- useAutomaticSigning: Defines if project should use automatic signing
|
11755
|
+
- sdk: Build target SDKs (iphoneos*, macosx*, iphonesimulator*)
|
11735
11756
|
- teamId: Team ID, is used when upgrading project
|
11736
11757
|
- targets: Specify targets you want to toggle the signing mech. (default to all targets)
|
11737
11758
|
- buildConfigurations: Specify build_configurations you want to toggle the signing mech. (default to all configurations)
|
@@ -11747,6 +11768,7 @@ public func updateAppIdentifier(xcodeproj: String,
|
|
11747
11768
|
*/
|
11748
11769
|
public func updateCodeSigningSettings(path: String,
|
11749
11770
|
useAutomaticSigning: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
11771
|
+
sdk: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
11750
11772
|
teamId: OptionalConfigValue<String?> = .fastlaneDefault(nil),
|
11751
11773
|
targets: OptionalConfigValue<[String]?> = .fastlaneDefault(nil),
|
11752
11774
|
buildConfigurations: OptionalConfigValue<[String]?> = .fastlaneDefault(nil),
|
@@ -11758,6 +11780,7 @@ public func updateCodeSigningSettings(path: String,
|
|
11758
11780
|
{
|
11759
11781
|
let pathArg = RubyCommand.Argument(name: "path", value: path, type: nil)
|
11760
11782
|
let useAutomaticSigningArg = useAutomaticSigning.asRubyArgument(name: "use_automatic_signing", type: nil)
|
11783
|
+
let sdkArg = sdk.asRubyArgument(name: "sdk", type: nil)
|
11761
11784
|
let teamIdArg = teamId.asRubyArgument(name: "team_id", type: nil)
|
11762
11785
|
let targetsArg = targets.asRubyArgument(name: "targets", type: nil)
|
11763
11786
|
let buildConfigurationsArg = buildConfigurations.asRubyArgument(name: "build_configurations", type: nil)
|
@@ -11768,6 +11791,7 @@ public func updateCodeSigningSettings(path: String,
|
|
11768
11791
|
let bundleIdentifierArg = bundleIdentifier.asRubyArgument(name: "bundle_identifier", type: nil)
|
11769
11792
|
let array: [RubyCommand.Argument?] = [pathArg,
|
11770
11793
|
useAutomaticSigningArg,
|
11794
|
+
sdkArg,
|
11771
11795
|
teamIdArg,
|
11772
11796
|
targetsArg,
|
11773
11797
|
buildConfigurationsArg,
|
@@ -13151,7 +13175,7 @@ public func xcexport() {
|
|
13151
13175
|
Change the xcode-path to use. Useful for beta versions of Xcode
|
13152
13176
|
|
13153
13177
|
Select and build with the Xcode installed at the provided path.
|
13154
|
-
Use the `
|
13178
|
+
Use the `xcodes` action if you want to select an Xcode:
|
13155
13179
|
- Based on a version specifier or
|
13156
13180
|
- You don't have known, stable paths, as may happen in a CI environment.
|
13157
13181
|
*/
|
@@ -13221,6 +13245,45 @@ public func xcodebuild() {
|
|
13221
13245
|
_ = runner.executeCommand(command)
|
13222
13246
|
}
|
13223
13247
|
|
13248
|
+
/**
|
13249
|
+
Make sure a certain version of Xcode is installed, installing it only if needed
|
13250
|
+
|
13251
|
+
- parameters:
|
13252
|
+
- version: The version number of the version of Xcode to install. Defaults to the value specified in the .xcode-version file
|
13253
|
+
- updateList: Whether the list of available Xcode versions should be updated before running the install command
|
13254
|
+
- selectForCurrentBuildOnly: When true, it won't attempt to install an Xcode version, just find the installed Xcode version that best matches the passed version argument, and select it for the current build steps. It doesn't change the global Xcode version (e.g. via 'xcrun xcode-select'), which would require sudo permissions — when this option is true, this action doesn't require sudo permissions
|
13255
|
+
- binaryPath: Where the xcodes binary lives on your system (full path)
|
13256
|
+
- xcodesArgs: Pass in xcodes command line arguments directly. When present, other parameters are ignored and only this parameter is used to build the command to be executed
|
13257
|
+
|
13258
|
+
- returns: The path to the newly installed Xcode version
|
13259
|
+
|
13260
|
+
Makes sure a specific version of Xcode is installed. If that's not the case, it will automatically be downloaded by [xcodes](https://github.com/RobotsAndPencils/xcodes).
|
13261
|
+
This will make sure to use the correct Xcode version for later actions.
|
13262
|
+
Note that this action depends on [xcodes](https://github.com/RobotsAndPencils/xcodes) CLI, so make sure you have it installed in your environment. For the installation guide, see: https://github.com/RobotsAndPencils/xcodes#installation
|
13263
|
+
*/
|
13264
|
+
@discardableResult public func xcodes(version: String,
|
13265
|
+
updateList: OptionalConfigValue<Bool> = .fastlaneDefault(true),
|
13266
|
+
selectForCurrentBuildOnly: OptionalConfigValue<Bool> = .fastlaneDefault(false),
|
13267
|
+
binaryPath: String = "/opt/homebrew/bin/xcodes",
|
13268
|
+
xcodesArgs: OptionalConfigValue<String?> = .fastlaneDefault(nil)) -> String
|
13269
|
+
{
|
13270
|
+
let versionArg = RubyCommand.Argument(name: "version", value: version, type: nil)
|
13271
|
+
let updateListArg = updateList.asRubyArgument(name: "update_list", type: nil)
|
13272
|
+
let selectForCurrentBuildOnlyArg = selectForCurrentBuildOnly.asRubyArgument(name: "select_for_current_build_only", type: nil)
|
13273
|
+
let binaryPathArg = RubyCommand.Argument(name: "binary_path", value: binaryPath, type: nil)
|
13274
|
+
let xcodesArgsArg = xcodesArgs.asRubyArgument(name: "xcodes_args", type: nil)
|
13275
|
+
let array: [RubyCommand.Argument?] = [versionArg,
|
13276
|
+
updateListArg,
|
13277
|
+
selectForCurrentBuildOnlyArg,
|
13278
|
+
binaryPathArg,
|
13279
|
+
xcodesArgsArg]
|
13280
|
+
let args: [RubyCommand.Argument] = array
|
13281
|
+
.filter { $0?.value != nil }
|
13282
|
+
.compactMap { $0 }
|
13283
|
+
let command = RubyCommand(commandID: "", methodName: "xcodes", className: nil, args: args)
|
13284
|
+
return runner.executeCommand(command)
|
13285
|
+
}
|
13286
|
+
|
13224
13287
|
/**
|
13225
13288
|
Nice code coverage reports without hassle
|
13226
13289
|
|
@@ -13374,7 +13437,7 @@ public func xctool() {
|
|
13374
13437
|
/**
|
13375
13438
|
Select an Xcode to use by version specifier
|
13376
13439
|
|
13377
|
-
- parameter version: The version of Xcode to select specified as a Gem::Version requirement string (e.g. '~> 7.1.0')
|
13440
|
+
- parameter version: The version of Xcode to select specified as a Gem::Version requirement string (e.g. '~> 7.1.0'). Defaults to the value specified in the .xcode-version file
|
13378
13441
|
|
13379
13442
|
Finds and selects a version of an installed Xcode that best matches the provided [`Gem::Version` requirement specifier](http://www.rubydoc.info/github/rubygems/rubygems/Gem/Version)
|
13380
13443
|
You can either manually provide a specific version using `version:` or you make use of the `.xcode-version` file.
|
@@ -13486,4 +13549,4 @@ public let snapshotfile: Snapshotfile = .init()
|
|
13486
13549
|
|
13487
13550
|
// Please don't remove the lines below
|
13488
13551
|
// They are used to detect outdated files
|
13489
|
-
// FastlaneRunnerAPIVersion [0.9.
|
13552
|
+
// FastlaneRunnerAPIVersion [0.9.165]
|
@@ -107,6 +107,9 @@ public protocol MatchfileProtocol: AnyObject {
|
|
107
107
|
/// Renew the provisioning profiles if the device count on the developer portal has changed. Ignored for profile types 'appstore' and 'developer_id'
|
108
108
|
var forceForNewDevices: Bool { get }
|
109
109
|
|
110
|
+
/// Include Apple Silicon Mac devices in provisioning profiles for iOS/iPadOS apps
|
111
|
+
var includeMacInProfiles: Bool { get }
|
112
|
+
|
110
113
|
/// Include all matching certificates in the provisioning profile. Works only for the 'development' provisioning profile type
|
111
114
|
var includeAllCertificates: Bool { get }
|
112
115
|
|
@@ -186,6 +189,7 @@ public extension MatchfileProtocol {
|
|
186
189
|
var keychainPassword: String? { return nil }
|
187
190
|
var force: Bool { return false }
|
188
191
|
var forceForNewDevices: Bool { return false }
|
192
|
+
var includeMacInProfiles: Bool { return false }
|
189
193
|
var includeAllCertificates: Bool { return false }
|
190
194
|
var forceForNewCertificates: Bool { return false }
|
191
195
|
var skipConfirmation: Bool { return false }
|
@@ -204,4 +208,4 @@ public extension MatchfileProtocol {
|
|
204
208
|
|
205
209
|
// Please don't remove the lines below
|
206
210
|
// They are used to detect outdated files
|
207
|
-
// FastlaneRunnerAPIVersion [0.9.
|
211
|
+
// FastlaneRunnerAPIVersion [0.9.109]
|