|
1 | 1 | import os
|
2 | 2 | import unittest
|
| 3 | + |
3 | 4 | from core.base_test.tns_test import TnsTest
|
4 | 5 | from core.enums.os_type import OSType
|
5 | 6 | from core.enums.platform_type import Platform
|
| 7 | +from core.log.log import Log |
6 | 8 | from core.settings import Settings
|
7 | 9 | from core.settings.Settings import TEST_RUN_HOME
|
| 10 | +from core.utils.docker import Docker |
8 | 11 | from core.utils.file_utils import File, Folder
|
9 | 12 | from core.utils.npm import Npm
|
10 |
| -from core.utils.docker import Docker |
11 | 13 | from core.utils.run import run
|
| 14 | +from core.utils.xcode import Xcode |
12 | 15 | from data.templates import Template
|
13 | 16 | from products.nativescript.tns import Tns
|
14 | 17 | from products.nativescript.tns_assert import TnsAssert
|
@@ -240,7 +243,11 @@ def test_190_build_ios_distribution_provisions(self):
|
240 | 243 | assert Settings.IOS.DEVELOPMENT_TEAM in result.output
|
241 | 244 |
|
242 | 245 | # Build with correct distribution provision
|
243 |
| - Tns.build_ios(self.app_name, provision=Settings.IOS.DISTRIBUTION_PROVISIONING, for_device=True, release=True) |
| 246 | + if Xcode.get_version() < 11: |
| 247 | + Log.info("Skip this check because we use new type of certificated that require Xcode 11.") |
| 248 | + else: |
| 249 | + Tns.build_ios(self.app_name, provision=Settings.IOS.DISTRIBUTION_PROVISIONING, for_device=True, |
| 250 | + release=True) |
244 | 251 |
|
245 | 252 | # Verify that passing wrong provision shows user friendly error
|
246 | 253 | result = Tns.build_ios(self.app_name, provision="fake", verify=False)
|
|
0 commit comments