Browse Source

Bump min apple platform versions for mapsmobi

https://developer.apple.com/documentation/security/2980705-sectrustevaluatewitherror?changes=_1&language=objc

ref:2a3a8edffbbe69f7f2d8dd71a92a12271ceac1e4
trivias 2 years ago
parent
commit
22d1a9da7b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      build/ymake_conf.py

+ 5 - 0
build/ymake_conf.py

@@ -1143,7 +1143,12 @@ class GnuToolchain(Toolchain):
         # https://developer.apple.com/documentation/metal/supporting_simulator_in_a_metal_app
         # https://developer.apple.com/documentation/metal/supporting_simulator_in_a_metal_app
         # Mapkit (MAPSMOBI_BUILD_TARGET) uses Metal Framework
         # Mapkit (MAPSMOBI_BUILD_TARGET) uses Metal Framework
         if preset('MAPSMOBI_BUILD_TARGET') and target.is_iossim and target.is_armv8:
         if preset('MAPSMOBI_BUILD_TARGET') and target.is_iossim and target.is_armv8:
+            macos_version_min = '10.14'
             ios_version_min = '13.0'
             ios_version_min = '13.0'
+        # Mapkit uses SecTrustEvaluateWithError function and these are min versions for it
+        elif preset('MAPSMOBI_BUILD_TARGET'):
+            macos_version_min = '10.14'
+            ios_version_min = '12.0'
 
 
         swift_target = select(default=None, selectors=[
         swift_target = select(default=None, selectors=[
             (target.is_iossim and target.is_x86_64, 'x86_64-apple-ios{}-simulator'.format(ios_version_min)),
             (target.is_iossim and target.is_x86_64, 'x86_64-apple-ios{}-simulator'.format(ios_version_min)),