From d77b618925f6174f48438c6f86eb2a7bce3bfd87 Mon Sep 17 00:00:00 2001 From: Khoa Pham Date: Thu, 22 Nov 2018 10:15:06 +0100 Subject: [PATCH] Update to swift 4.2 --- Smile.xcodeproj/project.pbxproj | 10 +++++++--- .../xcshareddata/xcschemes/Smile-Mac.xcscheme | 2 +- .../xcshareddata/xcschemes/Smile-iOS.xcscheme | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Smile.xcodeproj/project.pbxproj b/Smile.xcodeproj/project.pbxproj index 8be8bfe..9e17b1e 100644 --- a/Smile.xcodeproj/project.pbxproj +++ b/Smile.xcodeproj/project.pbxproj @@ -256,7 +256,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0730; - LastUpgradeCheck = 0900; + LastUpgradeCheck = 1000; ORGANIZATIONNAME = Fantageek; TargetAttributes = { D5B2E89E1C3A780C00C0327D = { @@ -395,12 +395,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -433,7 +435,7 @@ ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -452,12 +454,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -483,7 +487,7 @@ MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; diff --git a/Smile.xcodeproj/xcshareddata/xcschemes/Smile-Mac.xcscheme b/Smile.xcodeproj/xcshareddata/xcschemes/Smile-Mac.xcscheme index 0297cfd..472eb6e 100644 --- a/Smile.xcodeproj/xcshareddata/xcschemes/Smile-Mac.xcscheme +++ b/Smile.xcodeproj/xcshareddata/xcschemes/Smile-Mac.xcscheme @@ -1,6 +1,6 @@