-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,9 +49,7 @@ platform :ios do | |
lane :build do | ||
app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) | ||
team_id = CredentialsManager::AppfileConfig.try_fetch_value(:team_id) | ||
keychain_name = "signing" | ||
keychain_password = "temp" | ||
|
||
|
||
########################################## | ||
# Environment Setup | ||
########################################## | ||
|
@@ -64,51 +62,32 @@ platform :ios do | |
value: ENV['BUILD_NUMBER'] | ||
) | ||
|
||
delete_keychain( | ||
name: keychain_name | ||
) if File.exist? File.expand_path("~/Library/Keychains/#{keychain_name}-db") | ||
|
||
create_keychain( | ||
name: keychain_name, | ||
password: keychain_password, | ||
default_keychain: true, | ||
unlock: true, | ||
timeout: 3600, | ||
add_to_search_list: true | ||
unlock_keychain( | ||
path: "~/Library/Keychains/login.keychain-db", | ||
password: ENV['IOS_KEYCHAIN_PASSWORD'] | ||
) | ||
|
||
########################################## | ||
# Configure Code Signing via Match | ||
########################################## | ||
|
||
match( | ||
type: "appstore", | ||
api_key: api_key, | ||
app_identifier: app_identifier, | ||
git_branch: "main", # branch to store and get certificates from | ||
git_full_name: "Artemis IOS", | ||
git_branch: "main", # branch to store and get certificates from | ||
clone_branch_directly: true, # optional | ||
git_user_email: "[email protected]", | ||
git_url: "https://gitlab.lrz.de/ase/ipraktikum/match-code-signing", | ||
readonly: false, | ||
force: true, | ||
keychain_name: login.keychain, | ||
keychain_password: ENV['IOS_KEYCHAIN_PASSWORD'], | ||
git_basic_authorization: ENV['IOS_MATCH_GITLAB_AUTH'], # Base-64 encoded, format gitlab_auth_token_name:gitlab_auth_token | ||
keychain_name: keychain_name, | ||
keychain_password: keychain_password, # Keychain password to store cert (using the default login keychain) | ||
verbose: true # optional but very helpful | ||
) | ||
|
||
########################################## | ||
# Project Setup | ||
########################################## | ||
|
||
# Update AppID for publishing | ||
update_app_identifier( | ||
plist_path: info_plist_path | ||
) | ||
|
||
########################################## | ||
# Code sign and Build | ||
# Build | ||
########################################## | ||
|
||
# Build the app | ||
|
@@ -121,6 +100,10 @@ platform :ios do | |
derived_data_path: ".DerivedData", # Custom derived data path | ||
output_directory: "./build", # Directory where the output artifacts are generated | ||
scheme: "Artemis", | ||
export_options: { | ||
compileBitcode: false, | ||
provisioningProfiles: SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING | ||
}, | ||
xcargs: "-skipMacroValidation -skipPackagePluginValidation" | ||
) | ||
end | ||
|