Skip to content

Commit 34b5336

Browse files
devxoulisair
authored andcommitted
Update to Xcode 9 and Swift 4 (#22)
1 parent 8d98ee3 commit 34b5336

File tree

4 files changed

+30
-14
lines changed

4 files changed

+30
-14
lines changed

.swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0
1+
4.0

ManualLayout.xcodeproj/project.pbxproj

+23-11
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
isa = PBXProject;
356356
attributes = {
357357
LastSwiftUpdateCheck = 0700;
358-
LastUpgradeCheck = 0800;
358+
LastUpgradeCheck = 0900;
359359
ORGANIZATIONNAME = "Baris Sencan";
360360
TargetAttributes = {
361361
5F91347C1AC9E1630001DBF8 = {
@@ -369,12 +369,12 @@
369369
};
370370
5FB4CBE81A9BBE7500C2FB4F = {
371371
CreatedOnToolsVersion = 6.1.1;
372-
LastSwiftMigration = 0800;
372+
LastSwiftMigration = 0900;
373373
ProvisioningStyle = Automatic;
374374
};
375375
5FB4CBF31A9BBE7500C2FB4F = {
376376
CreatedOnToolsVersion = 6.1.1;
377-
LastSwiftMigration = 0800;
377+
LastSwiftMigration = 0900;
378378
};
379379
FE4500601BF12E5F0005E270 = {
380380
ProvisioningStyle = Automatic;
@@ -612,14 +612,20 @@
612612
CLANG_CXX_LIBRARY = "libc++";
613613
CLANG_ENABLE_MODULES = YES;
614614
CLANG_ENABLE_OBJC_ARC = YES;
615+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
615616
CLANG_WARN_BOOL_CONVERSION = YES;
617+
CLANG_WARN_COMMA = YES;
616618
CLANG_WARN_CONSTANT_CONVERSION = YES;
617619
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
618620
CLANG_WARN_EMPTY_BODY = YES;
619621
CLANG_WARN_ENUM_CONVERSION = YES;
620622
CLANG_WARN_INFINITE_RECURSION = YES;
621623
CLANG_WARN_INT_CONVERSION = YES;
624+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
625+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
622626
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
627+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
628+
CLANG_WARN_STRICT_PROTOTYPES = YES;
623629
CLANG_WARN_SUSPICIOUS_MOVE = YES;
624630
CLANG_WARN_UNREACHABLE_CODE = YES;
625631
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -662,14 +668,20 @@
662668
CLANG_CXX_LIBRARY = "libc++";
663669
CLANG_ENABLE_MODULES = YES;
664670
CLANG_ENABLE_OBJC_ARC = YES;
671+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
665672
CLANG_WARN_BOOL_CONVERSION = YES;
673+
CLANG_WARN_COMMA = YES;
666674
CLANG_WARN_CONSTANT_CONVERSION = YES;
667675
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
668676
CLANG_WARN_EMPTY_BODY = YES;
669677
CLANG_WARN_ENUM_CONVERSION = YES;
670678
CLANG_WARN_INFINITE_RECURSION = YES;
671679
CLANG_WARN_INT_CONVERSION = YES;
680+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
681+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
672682
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
683+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
684+
CLANG_WARN_STRICT_PROTOTYPES = YES;
673685
CLANG_WARN_SUSPICIOUS_MOVE = YES;
674686
CLANG_WARN_UNREACHABLE_CODE = YES;
675687
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -701,7 +713,7 @@
701713
isa = XCBuildConfiguration;
702714
buildSettings = {
703715
CLANG_ENABLE_MODULES = YES;
704-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
716+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
705717
DEFINES_MODULE = YES;
706718
DYLIB_COMPATIBILITY_VERSION = 1;
707719
DYLIB_CURRENT_VERSION = 1;
@@ -714,15 +726,15 @@
714726
PRODUCT_NAME = "$(TARGET_NAME)";
715727
SKIP_INSTALL = YES;
716728
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
717-
SWIFT_VERSION = 3.0;
729+
SWIFT_VERSION = 4.0;
718730
};
719731
name = Debug;
720732
};
721733
5FB4CC011A9BBE7500C2FB4F /* Release */ = {
722734
isa = XCBuildConfiguration;
723735
buildSettings = {
724736
CLANG_ENABLE_MODULES = YES;
725-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
737+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
726738
DEFINES_MODULE = YES;
727739
DYLIB_COMPATIBILITY_VERSION = 1;
728740
DYLIB_CURRENT_VERSION = 1;
@@ -734,7 +746,7 @@
734746
PRODUCT_BUNDLE_IDENTIFIER = "com.bsencan.$(PRODUCT_NAME:rfc1034identifier)";
735747
PRODUCT_NAME = "$(TARGET_NAME)";
736748
SKIP_INSTALL = YES;
737-
SWIFT_VERSION = 3.0;
749+
SWIFT_VERSION = 4.0;
738750
};
739751
name = Release;
740752
};
@@ -753,7 +765,7 @@
753765
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
754766
PRODUCT_BUNDLE_IDENTIFIER = "com.bsencan.$(PRODUCT_NAME:rfc1034identifier)";
755767
PRODUCT_NAME = "$(TARGET_NAME)";
756-
SWIFT_VERSION = 3.0;
768+
SWIFT_VERSION = 4.0;
757769
};
758770
name = Debug;
759771
};
@@ -768,7 +780,7 @@
768780
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
769781
PRODUCT_BUNDLE_IDENTIFIER = "com.bsencan.$(PRODUCT_NAME:rfc1034identifier)";
770782
PRODUCT_NAME = "$(TARGET_NAME)";
771-
SWIFT_VERSION = 3.0;
783+
SWIFT_VERSION = 4.0;
772784
};
773785
name = Release;
774786
};
@@ -777,7 +789,7 @@
777789
buildSettings = {
778790
BITCODE_GENERATION_MODE = bitcode;
779791
CLANG_ENABLE_MODULES = YES;
780-
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "iPhone Developer";
792+
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
781793
DEFINES_MODULE = YES;
782794
DYLIB_COMPATIBILITY_VERSION = 1;
783795
DYLIB_CURRENT_VERSION = 1;
@@ -801,7 +813,7 @@
801813
buildSettings = {
802814
BITCODE_GENERATION_MODE = bitcode;
803815
CLANG_ENABLE_MODULES = YES;
804-
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "iPhone Developer";
816+
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
805817
DEFINES_MODULE = YES;
806818
DYLIB_COMPATIBILITY_VERSION = 1;
807819
DYLIB_CURRENT_VERSION = 1;

ManualLayout.xcodeproj/xcshareddata/xcschemes/ManualLayout-tvOS.xcscheme

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0900"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
</Testables>
@@ -36,6 +37,7 @@
3637
buildConfiguration = "Debug"
3738
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3839
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
40+
language = ""
3941
launchStyle = "0"
4042
useCustomWorkingDirectory = "NO"
4143
ignoresPersistentStateOnLaunch = "NO"

ManualLayout.xcodeproj/xcshareddata/xcschemes/ManualLayout.xcscheme

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0900"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,6 +40,7 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
language = ""
4344
shouldUseLaunchSchemeArgsEnv = "YES">
4445
<Testables>
4546
<TestableReference
@@ -69,6 +70,7 @@
6970
buildConfiguration = "Debug"
7071
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7172
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73+
language = ""
7274
launchStyle = "0"
7375
useCustomWorkingDirectory = "NO"
7476
ignoresPersistentStateOnLaunch = "NO"

0 commit comments

Comments
 (0)