Skip to content

Commit afefbcb

Browse files
authored
Merge pull request #2192 from Microsoft/users/mg/xcode103fix2
fix xcode issue with keychain not being listed for search
2 parents 7775751 + 5d79240 commit afefbcb

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

Tasks/Common/ios-signing-common/ios-signing-common.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export async function installCertInTemporaryKeychain(keychainPath : string, keyc
3939
importP12Command.arg(['-P', p12Pwd, '-A', '-t', 'cert', '-f', 'pkcs12', '-k']);
4040
importP12Command.pathArg(keychainPath);
4141
await importP12Command.exec();
42+
43+
//list the keychain
44+
var listCommand : ToolRunner = tl.createToolRunner(tl.which('security', true));
45+
listCommand.arg(['list-keychain', '-d', 'user', '-s', keychainPath]);
46+
await listCommand.exec();
4247
}
4348

4449
/**

Tasks/Xcode/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"version": {
1313
"Major": 2,
1414
"Minor": 1,
15-
"Patch": 22
15+
"Patch": 23
1616
},
1717
"demands": [
1818
"xcode"

Tasks/Xcode/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"version": {
1313
"Major": 2,
1414
"Minor": 1,
15-
"Patch": 22
15+
"Patch": 23
1616
},
1717
"demands": [
1818
"xcode"

Tests/L0/Xcode/responseSigningFile.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
"code": 0,
6868
"stdout": "delete output here"
6969
},
70+
"/usr/bin/security list-keychain -d user -s /user/build/_xcodetasktmp.keychain" : {
71+
"code": 0,
72+
"stdout": "list-keychain output here"
73+
},
7074
"/bin/cp -f /user/build/testuuid.mobileprovision /users/test/Library/MobileDevice/Provisioning Profiles/testuuid.mobileprovision": {
7175
"code": 0,
7276
"stdout": "provisioning profile copied"

0 commit comments

Comments
 (0)