From aa382e016d69804d23b70d1ffdd55a94db4c47ec Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sat, 30 Jan 2021 17:13:37 -0600 Subject: [PATCH] Enable hardened runtime. --- Clocker/Clocker.xcodeproj/project.pbxproj | 2 ++ Clocker/Onboarding/OnboardingSearchController.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Clocker/Clocker.xcodeproj/project.pbxproj b/Clocker/Clocker.xcodeproj/project.pbxproj index 23daaf0c..dd07ff33 100755 --- a/Clocker/Clocker.xcodeproj/project.pbxproj +++ b/Clocker/Clocker.xcodeproj/project.pbxproj @@ -1470,6 +1470,7 @@ CURRENT_PROJECT_VERSION = 88; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; + ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", @@ -2073,6 +2074,7 @@ CURRENT_PROJECT_VERSION = 88; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; + ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", diff --git a/Clocker/Onboarding/OnboardingSearchController.swift b/Clocker/Onboarding/OnboardingSearchController.swift index e6d645f2..3f8de824 100644 --- a/Clocker/Onboarding/OnboardingSearchController.swift +++ b/Clocker/Onboarding/OnboardingSearchController.swift @@ -20,7 +20,7 @@ class OnboardingSearchController: NSViewController { guard let path = Bundle.main.path(forResource: "Keys", ofType: "plist"), let dictionary = NSDictionary(contentsOfFile: path), let apiKey = dictionary["GeocodingKey"] as? String else { -// assertionFailure("Unable to find the API key") + assertionFailure("Unable to find the API key") return "" } return apiKey