From 392ecb4db36bb350efd37b88669344d176d04daa Mon Sep 17 00:00:00 2001 From: Xin Hong Date: Thu, 4 Apr 2019 17:48:30 +0800 Subject: [PATCH] swift 5 --- SegmentedControl.xcodeproj/project.pbxproj | 15 +++++------ .../xcschemes/SegmentedControl.xcscheme | 2 +- SegmentedControl/SCScrollView.swift | 2 +- SegmentedControl/SegmentedControl.swift | 4 +++ SegmentedControl/Supporting Files/Info.plist | 2 +- .../project.pbxproj | 14 +++++------ .../SegmentedControlExample.xcscheme | 2 +- .../AppIcon.appiconset/Contents.json | 25 +++++++++++++++++++ SegmentedControlExample/Info.plist | 4 +-- 9 files changed, 50 insertions(+), 20 deletions(-) diff --git a/SegmentedControl.xcodeproj/project.pbxproj b/SegmentedControl.xcodeproj/project.pbxproj index 9722962..d532166 100644 --- a/SegmentedControl.xcodeproj/project.pbxproj +++ b/SegmentedControl.xcodeproj/project.pbxproj @@ -109,21 +109,22 @@ D3E3B0C21C3282BB003EAA6E /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0930; + LastUpgradeCheck = 1020; ORGANIZATIONNAME = Teambition; TargetAttributes = { D3E3B0CA1C3282BB003EAA6E = { CreatedOnToolsVersion = 7.2; - LastSwiftMigration = 0900; + LastSwiftMigration = 1020; }; }; }; buildConfigurationList = D3E3B0C51C3282BB003EAA6E /* Build configuration list for PBXProject "SegmentedControl" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = D3E3B0C11C3282BB003EAA6E; productRefGroup = D3E3B0CC1C3282BB003EAA6E /* Products */; @@ -165,6 +166,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -223,6 +225,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -287,8 +290,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -307,8 +309,7 @@ PRODUCT_BUNDLE_IDENTIFIER = Teambition.SegmentedControl; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/SegmentedControl.xcodeproj/xcshareddata/xcschemes/SegmentedControl.xcscheme b/SegmentedControl.xcodeproj/xcshareddata/xcschemes/SegmentedControl.xcscheme index 15ec7ee..5c38b68 100644 --- a/SegmentedControl.xcodeproj/xcshareddata/xcschemes/SegmentedControl.xcscheme +++ b/SegmentedControl.xcodeproj/xcshareddata/xcschemes/SegmentedControl.xcscheme @@ -1,6 +1,6 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.1.0 + 0.1.1 CFBundleSignature ???? CFBundleVersion diff --git a/SegmentedControlExample.xcodeproj/project.pbxproj b/SegmentedControlExample.xcodeproj/project.pbxproj index 2680203..f67e2e7 100644 --- a/SegmentedControlExample.xcodeproj/project.pbxproj +++ b/SegmentedControlExample.xcodeproj/project.pbxproj @@ -108,18 +108,18 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0930; + LastUpgradeCheck = 1020; ORGANIZATIONNAME = Teambition; TargetAttributes = { D3E3B0DE1C328316003EAA6E = { CreatedOnToolsVersion = 7.2; - LastSwiftMigration = 0900; + LastSwiftMigration = 1020; }; }; }; buildConfigurationList = D3E3B0DA1C328316003EAA6E /* Build configuration list for PBXProject "SegmentedControlExample" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, @@ -175,6 +175,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -230,6 +231,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; @@ -283,8 +285,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = Teambition.SegmentedControlExample; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -296,8 +297,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = Teambition.SegmentedControlExample; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/SegmentedControlExample.xcodeproj/xcuserdata/hongxin.xcuserdatad/xcschemes/SegmentedControlExample.xcscheme b/SegmentedControlExample.xcodeproj/xcuserdata/hongxin.xcuserdatad/xcschemes/SegmentedControlExample.xcscheme index f25cd8f..f84247b 100644 --- a/SegmentedControlExample.xcodeproj/xcuserdata/hongxin.xcuserdatad/xcschemes/SegmentedControlExample.xcscheme +++ b/SegmentedControlExample.xcodeproj/xcuserdata/hongxin.xcuserdatad/xcschemes/SegmentedControlExample.xcscheme @@ -1,6 +1,6 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.1.0 + 0.1.1 CFBundleSignature ???? CFBundleVersion - 10 + 11 LSRequiresIPhoneOS UILaunchStoryboardName