Skip to content

Commit a5f3f98

Browse files
committed
upgrade to latest Xcode and swift 5
1 parent 0006d60 commit a5f3f98

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

Sources/AppBase/String_extention.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public extension String {
1313
// check first that the first character of search string exists
1414
if self.contains(findStr.first!) {
1515
// if so set this as the place to start searching
16-
startInd = self.index(of:findStr.first!)!
16+
startInd = self.firstIndex(of:findStr.first!)!
1717
}
1818
else {
1919
// if not return empty array

opengl_example.xcodeproj/project.pbxproj

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@
298298
ProvisioningStyle = Automatic;
299299
};
300300
"opengl_example::AppBase" = {
301-
LastSwiftMigration = 0930;
301+
LastSwiftMigration = 1020;
302302
};
303303
"opengl_example::app" = {
304-
LastSwiftMigration = 0930;
304+
LastSwiftMigration = 1020;
305305
};
306306
};
307307
};
@@ -310,6 +310,7 @@
310310
developmentRegion = English;
311311
hasScannedForEncodings = 0;
312312
knownRegions = (
313+
English,
313314
en,
314315
Base,
315316
);
@@ -663,8 +664,7 @@
663664
OTHER_SWIFT_FLAGS = "$(inherited)";
664665
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
665666
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
666-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
667-
SWIFT_VERSION = 4.0;
667+
SWIFT_VERSION = 5.0;
668668
TARGET_NAME = app;
669669
};
670670
name = Debug;
@@ -683,8 +683,7 @@
683683
OTHER_SWIFT_FLAGS = "$(inherited)";
684684
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
685685
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
686-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
687-
SWIFT_VERSION = 4.0;
686+
SWIFT_VERSION = 5.0;
688687
TARGET_NAME = app;
689688
};
690689
name = Release;
@@ -706,8 +705,7 @@
706705
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
707706
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
708707
SKIP_INSTALL = YES;
709-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
710-
SWIFT_VERSION = 4.0;
708+
SWIFT_VERSION = 5.0;
711709
TARGET_NAME = AppBase;
712710
};
713711
name = Debug;
@@ -729,8 +727,7 @@
729727
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
730728
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
731729
SKIP_INSTALL = YES;
732-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
733-
SWIFT_VERSION = 4.0;
730+
SWIFT_VERSION = 5.0;
734731
TARGET_NAME = AppBase;
735732
};
736733
name = Release;

0 commit comments

Comments
 (0)