Skip to content

Commit 130e6d5

Browse files
committed
fix: always try codesigning on ios
1 parent b707615 commit 130e6d5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

debug.p12

1.59 KB
Binary file not shown.

lib/project.service.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,12 @@ export namespace ProjectService {
189189
Logger.log(`building project for ${platform} ...`);
190190
const cwd = path.join(testDirectory, projectName);
191191
if (platform === 'ios') {
192-
// TODO: change this after it expires in August 2019
193-
options += ' --provision /tns-official/CodeSign/ios/Icenium_QA_Development.mobileprovision --certificate /tns-official/CodeSign/ios/iPhone\\ Developer\\ Dragon\\ Telerikov\\ \\(R58QAA9NR8\\).p12 --certificatePassword 1';
192+
if (cloudEnabled) {
193+
// TODO: change this after it expires in August 2019
194+
options += ' --provision /tns-official/CodeSign/ios/Icenium_QA_Development.mobileprovision --certificate /tns-official/CodeSign/ios/iPhone\\ Developer\\ Dragon\\ Telerikov\\ \\(R58QAA9NR8\\).p12 --certificatePassword 1';
195+
} else {
196+
options += ' --release --for-device --provision $PROVISIONING';
197+
}
194198
}
195199
const command = cloudEnabled ? `tns cloud build ${platform} --accountId 1 ${options}` : `tns build ${platform} ${options}`;
196200
const result = await execPromise(cwd, command);

0 commit comments

Comments
 (0)