Skip to content

Commit 44de6be

Browse files
committed
ci(Fastlane): make Keychain permissions fix generic
Signed-off-by: Jakub Sokołowski <[email protected]>
1 parent 05c7dfb commit 44de6be

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

fastlane/Fastfile

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class Keychain
7474
lock_after_timeout: true,
7575
timeout: 1500
7676
)
77+
# Fix certificate access permissions
78+
Fastlane::Actions.sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{pass} #{name}")
7779
end
7880
end
7981

@@ -215,13 +217,6 @@ platform :ios do
215217
lane :release do
216218
kc = Keychain.new('fastlane')
217219

218-
# recreate keychain
219-
sh("security delete-keychain #{kc.name}", error_callback: ->(result) { })
220-
sh("security create-keychain -p #{kc.pass} #{kc.name}")
221-
sh("security set-keychain-settings -t 3600 -l #{kc.name}")
222-
sh("security unlock-keychain -p #{kc.pass} #{kc.name}")
223-
sh("security list-keychains -d user -s login.keychain #{kc.name}")
224-
225220
match(
226221
type: 'appstore',
227222
readonly: true,
@@ -231,12 +226,6 @@ platform :ios do
231226
keychain_password: kc.pass
232227
)
233228

234-
# Fix certificate access permissions
235-
sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{kc.pass} #{kc.name}")
236-
237-
# Debug
238-
sh("security find-identity -v -p codesigning #{kc.name}")
239-
240229
build_ios_app(
241230
scheme: 'StatusIm',
242231
workspace: 'ios/StatusIm.xcworkspace',

0 commit comments

Comments
 (0)