From fcc4ab822f6a6395c29aff3804d7c660dca4947c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Thu, 23 May 2019 12:51:21 -0700 Subject: [PATCH] [macos] Notarize macosapp --- platform/macos/ExportOptions.plist | 4 ++++ platform/macos/Mapbox GL.entitlements | 5 +++++ platform/macos/macos.xcodeproj/project.pbxproj | 9 +++++++++ .../xcshareddata/xcschemes/macosapp.xcscheme | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 platform/macos/Mapbox GL.entitlements diff --git a/platform/macos/ExportOptions.plist b/platform/macos/ExportOptions.plist index 21af10c08a..466e0c2c76 100644 --- a/platform/macos/ExportOptions.plist +++ b/platform/macos/ExportOptions.plist @@ -2,8 +2,12 @@ + destination + upload method developer-id + signingStyle + automatic teamID GJZR2MEM28 diff --git a/platform/macos/Mapbox GL.entitlements b/platform/macos/Mapbox GL.entitlements new file mode 100644 index 0000000000..0c67376eba --- /dev/null +++ b/platform/macos/Mapbox GL.entitlements @@ -0,0 +1,5 @@ + + + + + diff --git a/platform/macos/macos.xcodeproj/project.pbxproj b/platform/macos/macos.xcodeproj/project.pbxproj index 9fc46195b8..f1a9ea9809 100644 --- a/platform/macos/macos.xcodeproj/project.pbxproj +++ b/platform/macos/macos.xcodeproj/project.pbxproj @@ -728,6 +728,7 @@ DAF25713201901C100367EF5 /* MGLHillshadeStyleLayer.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MGLHillshadeStyleLayer.mm; sourceTree = ""; }; DAF25714201901C200367EF5 /* MGLHillshadeStyleLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MGLHillshadeStyleLayer.h; sourceTree = ""; }; DAF2571D201902A500367EF5 /* MGLHillshadeStyleLayerTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MGLHillshadeStyleLayerTests.mm; sourceTree = ""; }; + DAF99A3222968C7B004AD6A8 /* Mapbox GL.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Mapbox GL.entitlements"; sourceTree = ""; }; DAFBD0D51E3FA969000CD6BF /* zh-Hant */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = ""; }; DAFBD0D61E3FA983000CD6BF /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Foundation.strings"; sourceTree = ""; }; DAFEB3702093ACBF00A86A83 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/Localizable.strings; sourceTree = ""; }; @@ -902,6 +903,7 @@ DA839E891CC2E3400062CAFB = { isa = PBXGroup; children = ( + DAF99A3222968C7B004AD6A8 /* Mapbox GL.entitlements */, DA839E941CC2E3400062CAFB /* Demo App */, DAE6C3291CC30DB200DB3429 /* SDK */, DAE6C3371CC30DB200DB3429 /* SDK Tests */, @@ -1546,6 +1548,11 @@ DA839E911CC2E3400062CAFB = { CreatedOnToolsVersion = 7.3; LastSwiftMigration = 0920; + SystemCapabilities = { + com.apple.HardenedRuntime = { + enabled = 1; + }; + }; }; DAAA17961CE13BAE00731EFE = { CreatedOnToolsVersion = 7.3.1; @@ -2102,6 +2109,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; COMBINE_HIDPI_IMAGES = YES; + ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "$(SRCROOT)/app/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; OTHER_CFLAGS = "-fvisibility=hidden"; @@ -2119,6 +2127,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; COMBINE_HIDPI_IMAGES = YES; + ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "$(SRCROOT)/app/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; OTHER_CFLAGS = "-fvisibility=hidden"; diff --git a/platform/macos/macos.xcodeproj/xcshareddata/xcschemes/macosapp.xcscheme b/platform/macos/macos.xcodeproj/xcshareddata/xcschemes/macosapp.xcscheme index 98e6c54a33..fdf885ade6 100644 --- a/platform/macos/macos.xcodeproj/xcshareddata/xcschemes/macosapp.xcscheme +++ b/platform/macos/macos.xcodeproj/xcshareddata/xcschemes/macosapp.xcscheme @@ -52,7 +52,7 @@