From 5208d6027f77b011e6dd949ee4ded1d7f4db9f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 3 Dec 2025 10:57:37 +0100 Subject: [PATCH 1/2] ci(Fastlane): make Keychain permissions fix generic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub Sokołowski --- fastlane/Fastfile | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index a9b039fd824..d999f3a780e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -74,6 +74,8 @@ class Keychain lock_after_timeout: true, timeout: 1500 ) + # Fix certificate access permissions + Fastlane::Actions.sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{pass} #{@name}") end end @@ -215,13 +217,6 @@ platform :ios do lane :release do kc = Keychain.new('fastlane') - # recreate keychain - sh("security delete-keychain #{kc.name}", error_callback: ->(result) { }) - sh("security create-keychain -p #{kc.pass} #{kc.name}") - sh("security set-keychain-settings -t 3600 -l #{kc.name}") - sh("security unlock-keychain -p #{kc.pass} #{kc.name}") - sh("security list-keychains -d user -s login.keychain #{kc.name}") - match( type: 'appstore', readonly: true, @@ -231,12 +226,6 @@ platform :ios do keychain_password: kc.pass ) - # Fix certificate access permissions - sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{kc.pass} #{kc.name}") - - # Debug - sh("security find-identity -v -p codesigning #{kc.name}") - build_ios_app( scheme: 'StatusIm', workspace: 'ios/StatusIm.xcworkspace', From bd41537a0f4402c63b39bf7eb52b83fdb69b24a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 3 Dec 2025 16:17:36 +0100 Subject: [PATCH 2/2] x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub Sokołowski --- fastlane/Fastfile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index d999f3a780e..e3421bab394 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -74,8 +74,6 @@ class Keychain lock_after_timeout: true, timeout: 1500 ) - # Fix certificate access permissions - Fastlane::Actions.sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{pass} #{@name}") end end @@ -118,6 +116,9 @@ def build_ios_adhoc(readonly: false, pr_build: false) keychain_password: kc.pass ) + # Fix certificate access permissions + sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{kc.pass} #{kc.name}") + build_ios_app( scheme: scheme, workspace: 'ios/StatusIm.xcworkspace', @@ -217,6 +218,13 @@ platform :ios do lane :release do kc = Keychain.new('fastlane') + # recreate keychain + sh("security delete-keychain #{kc.name}", error_callback: ->(result) { }) + sh("security create-keychain -p #{kc.pass} #{kc.name}") + sh("security set-keychain-settings -t 3600 -l #{kc.name}") + sh("security unlock-keychain -p #{kc.pass} #{kc.name}") + sh("security list-keychains -d user -s login.keychain #{kc.name}") + match( type: 'appstore', readonly: true, @@ -226,6 +234,12 @@ platform :ios do keychain_password: kc.pass ) + # Fix certificate access permissions + sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{kc.pass} #{kc.name}") + + # Debug + sh("security find-identity -v -p codesigning #{kc.name}") + build_ios_app( scheme: 'StatusIm', workspace: 'ios/StatusIm.xcworkspace',