Skip to content

Commit c944c1f

Browse files
authored
Update for Xcode 10.2 and Swift 5 (#77)
1 parent 7a3effc commit c944c1f

File tree

10 files changed

+41
-29
lines changed

10 files changed

+41
-29
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2
1+
5.0

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: objective-c
2-
osx_image: xcode10.1
2+
osx_image: xcode10.2
33
before_script:
4-
- gem install cocoapods -v 1.5.3 --no-ri --no-rdoc
4+
- gem install cocoapods -v 1.6.1 --no-document
55
script:
66
./build.sh

FBSnapshotTestCase.xcodeproj/project.pbxproj

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
attributes = {
328328
LastSwiftMigration = 0700;
329329
LastSwiftUpdateCheck = 0720;
330-
LastUpgradeCheck = 1000;
330+
LastUpgradeCheck = 1020;
331331
ORGANIZATIONNAME = Facebook;
332332
TargetAttributes = {
333333
827137791C63AB6F00354E42 = {
@@ -348,10 +348,11 @@
348348
};
349349
buildConfigurationList = B31987EA1AB782D000B0A900 /* Build configuration list for PBXProject "FBSnapshotTestCase" */;
350350
compatibilityVersion = "Xcode 3.2";
351-
developmentRegion = English;
351+
developmentRegion = en;
352352
hasScannedForEncodings = 0;
353353
knownRegions = (
354354
en,
355+
Base,
355356
);
356357
mainGroup = B31987E61AB782D000B0A900;
357358
productRefGroup = B31987F11AB782D000B0A900 /* Products */;
@@ -498,7 +499,7 @@
498499
SDKROOT = appletvos;
499500
SKIP_INSTALL = YES;
500501
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
501-
SWIFT_VERSION = 4.2;
502+
SWIFT_VERSION = 5.0;
502503
TARGETED_DEVICE_FAMILY = 3;
503504
TVOS_DEPLOYMENT_TARGET = 9.0;
504505
};
@@ -531,7 +532,7 @@
531532
PRODUCT_NAME = FBSnapshotTestCase;
532533
SDKROOT = appletvos;
533534
SKIP_INSTALL = YES;
534-
SWIFT_VERSION = 4.2;
535+
SWIFT_VERSION = 5.0;
535536
TARGETED_DEVICE_FAMILY = 3;
536537
TVOS_DEPLOYMENT_TARGET = 9.0;
537538
};
@@ -548,7 +549,8 @@
548549
PRODUCT_NAME = "$(TARGET_NAME)";
549550
SDKROOT = appletvos;
550551
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
551-
SWIFT_VERSION = 4.2;
552+
SWIFT_VERSION = 5.0;
553+
TARGETED_DEVICE_FAMILY = 3;
552554
TVOS_DEPLOYMENT_TARGET = 9.1;
553555
};
554556
name = Debug;
@@ -564,7 +566,8 @@
564566
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.FBSnapshotTestCase-tvOSTests";
565567
PRODUCT_NAME = "$(TARGET_NAME)";
566568
SDKROOT = appletvos;
567-
SWIFT_VERSION = 4.2;
569+
SWIFT_VERSION = 5.0;
570+
TARGETED_DEVICE_FAMILY = 3;
568571
TVOS_DEPLOYMENT_TARGET = 9.1;
569572
};
570573
name = Release;
@@ -573,6 +576,7 @@
573576
isa = XCBuildConfiguration;
574577
buildSettings = {
575578
ALWAYS_SEARCH_USER_PATHS = NO;
579+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
576580
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
577581
CLANG_CXX_LIBRARY = "libc++";
578582
CLANG_ENABLE_MODULES = YES;
@@ -620,7 +624,7 @@
620624
MTL_ENABLE_DEBUG_INFO = YES;
621625
ONLY_ACTIVE_ARCH = YES;
622626
SDKROOT = iphoneos;
623-
SWIFT_VERSION = 4.2;
627+
SWIFT_VERSION = 5.0;
624628
TARGETED_DEVICE_FAMILY = "1,2";
625629
VERSIONING_SYSTEM = "apple-generic";
626630
VERSION_INFO_PREFIX = "";
@@ -631,6 +635,7 @@
631635
isa = XCBuildConfiguration;
632636
buildSettings = {
633637
ALWAYS_SEARCH_USER_PATHS = NO;
638+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
634639
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
635640
CLANG_CXX_LIBRARY = "libc++";
636641
CLANG_ENABLE_MODULES = YES;
@@ -671,7 +676,7 @@
671676
MTL_ENABLE_DEBUG_INFO = NO;
672677
SDKROOT = iphoneos;
673678
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
674-
SWIFT_VERSION = 4.2;
679+
SWIFT_VERSION = 5.0;
675680
TARGETED_DEVICE_FAMILY = "1,2";
676681
VALIDATE_PRODUCT = YES;
677682
VERSIONING_SYSTEM = "apple-generic";
@@ -706,7 +711,7 @@
706711
PRODUCT_NAME = FBSnapshotTestCase;
707712
SKIP_INSTALL = YES;
708713
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
709-
SWIFT_VERSION = 4.2;
714+
SWIFT_VERSION = 5.0;
710715
};
711716
name = Debug;
712717
};
@@ -737,7 +742,7 @@
737742
PRODUCT_NAME = FBSnapshotTestCase;
738743
SKIP_INSTALL = YES;
739744
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
740-
SWIFT_VERSION = 4.2;
745+
SWIFT_VERSION = 5.0;
741746
};
742747
name = Release;
743748
};
@@ -756,7 +761,7 @@
756761
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
757762
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.$(PRODUCT_NAME:rfc1034identifier)";
758763
PRODUCT_NAME = "$(TARGET_NAME)";
759-
SWIFT_VERSION = 4.2;
764+
SWIFT_VERSION = 5.0;
760765
};
761766
name = Debug;
762767
};
@@ -771,7 +776,7 @@
771776
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
772777
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.$(PRODUCT_NAME:rfc1034identifier)";
773778
PRODUCT_NAME = "$(TARGET_NAME)";
774-
SWIFT_VERSION = 4.2;
779+
SWIFT_VERSION = 5.0;
775780
};
776781
name = Release;
777782
};

FBSnapshotTestCase.xcodeproj/xcshareddata/xcschemes/FBSnapshotTestCase iOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

FBSnapshotTestCase.xcodeproj/xcshareddata/xcschemes/FBSnapshotTestCase tvOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo.xcodeproj/project.pbxproj

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
isa = PBXProject;
203203
attributes = {
204204
LastSwiftUpdateCheck = 0700;
205-
LastUpgradeCheck = 1000;
205+
LastUpgradeCheck = 1020;
206206
ORGANIZATIONNAME = Facebook;
207207
TargetAttributes = {
208208
B30449011AB794320067C75D = {
@@ -221,6 +221,7 @@
221221
developmentRegion = English;
222222
hasScannedForEncodings = 0;
223223
knownRegions = (
224+
English,
224225
en,
225226
Base,
226227
);
@@ -369,6 +370,7 @@
369370
isa = XCBuildConfiguration;
370371
buildSettings = {
371372
ALWAYS_SEARCH_USER_PATHS = NO;
373+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
372374
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
373375
CLANG_CXX_LIBRARY = "libc++";
374376
CLANG_ENABLE_MODULES = YES;
@@ -415,6 +417,7 @@
415417
MTL_ENABLE_DEBUG_INFO = YES;
416418
ONLY_ACTIVE_ARCH = YES;
417419
SDKROOT = iphoneos;
420+
SWIFT_VERSION = 5.0;
418421
TARGETED_DEVICE_FAMILY = "1,2";
419422
};
420423
name = Debug;
@@ -423,6 +426,7 @@
423426
isa = XCBuildConfiguration;
424427
buildSettings = {
425428
ALWAYS_SEARCH_USER_PATHS = NO;
429+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
426430
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
427431
CLANG_CXX_LIBRARY = "libc++";
428432
CLANG_ENABLE_MODULES = YES;
@@ -462,6 +466,7 @@
462466
MTL_ENABLE_DEBUG_INFO = NO;
463467
SDKROOT = iphoneos;
464468
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
469+
SWIFT_VERSION = 5.0;
465470
TARGETED_DEVICE_FAMILY = "1,2";
466471
VALIDATE_PRODUCT = YES;
467472
};
@@ -478,7 +483,7 @@
478483
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
479484
PRODUCT_NAME = "$(TARGET_NAME)";
480485
SWIFT_SWIFT3_OBJC_INFERENCE = On;
481-
SWIFT_VERSION = 4.2;
486+
SWIFT_VERSION = 5.0;
482487
};
483488
name = Debug;
484489
};
@@ -493,7 +498,7 @@
493498
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
494499
PRODUCT_NAME = "$(TARGET_NAME)";
495500
SWIFT_SWIFT3_OBJC_INFERENCE = On;
496-
SWIFT_VERSION = 4.2;
501+
SWIFT_VERSION = 5.0;
497502
};
498503
name = Release;
499504
};
@@ -517,7 +522,7 @@
517522
PRODUCT_NAME = "$(TARGET_NAME)";
518523
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
519524
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
520-
SWIFT_VERSION = 4.2;
525+
SWIFT_VERSION = 5.0;
521526
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FBSnapshotTestCaseDemo.app/FBSnapshotTestCaseDemo";
522527
};
523528
name = Debug;
@@ -537,7 +542,7 @@
537542
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
538543
PRODUCT_NAME = "$(TARGET_NAME)";
539544
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
540-
SWIFT_VERSION = 4.2;
545+
SWIFT_VERSION = 5.0;
541546
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FBSnapshotTestCaseDemo.app/FBSnapshotTestCaseDemo";
542547
};
543548
name = Release;

FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo.xcodeproj/xcshareddata/xcschemes/FBSnapshotTestCaseDemo.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "uber/ios-snapshot-test-case" ~> 5.0.1
1+
github "uber/ios-snapshot-test-case" ~> 6.0.3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "uber/ios-snapshot-test-case" "5.0.2"
1+
github "uber/ios-snapshot-test-case" "6.0.3"

iOSSnapshotTestCaseCarthageDemo/iOSSnapshotTestCaseCarthageDemo.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@
309309
SDKROOT = iphoneos;
310310
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
311311
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
312+
SWIFT_VERSION = 5.0;
312313
};
313314
name = Debug;
314315
};
@@ -363,6 +364,7 @@
363364
SDKROOT = iphoneos;
364365
SWIFT_COMPILATION_MODE = wholemodule;
365366
SWIFT_OPTIMIZATION_LEVEL = "-O";
367+
SWIFT_VERSION = 5.0;
366368
VALIDATE_PRODUCT = YES;
367369
};
368370
name = Release;
@@ -379,7 +381,7 @@
379381
);
380382
PRODUCT_BUNDLE_IDENTIFIER = com.uber.iOSSnapshotTestCaseCarthageDemo;
381383
PRODUCT_NAME = "$(TARGET_NAME)";
382-
SWIFT_VERSION = 4.2;
384+
SWIFT_VERSION = 5.0;
383385
TARGETED_DEVICE_FAMILY = "1,2";
384386
};
385387
name = Debug;
@@ -396,7 +398,7 @@
396398
);
397399
PRODUCT_BUNDLE_IDENTIFIER = com.uber.iOSSnapshotTestCaseCarthageDemo;
398400
PRODUCT_NAME = "$(TARGET_NAME)";
399-
SWIFT_VERSION = 4.2;
401+
SWIFT_VERSION = 5.0;
400402
TARGETED_DEVICE_FAMILY = "1,2";
401403
};
402404
name = Release;
@@ -418,7 +420,7 @@
418420
);
419421
PRODUCT_BUNDLE_IDENTIFIER = com.uber.iOSSnapshotTestCaseCarthageDemoSwiftTests;
420422
PRODUCT_NAME = "$(TARGET_NAME)";
421-
SWIFT_VERSION = 4.2;
423+
SWIFT_VERSION = 5.0;
422424
TARGETED_DEVICE_FAMILY = "1,2";
423425
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOSSnapshotTestCaseCarthageDemo.app/iOSSnapshotTestCaseCarthageDemo";
424426
};
@@ -441,7 +443,7 @@
441443
);
442444
PRODUCT_BUNDLE_IDENTIFIER = com.uber.iOSSnapshotTestCaseCarthageDemoSwiftTests;
443445
PRODUCT_NAME = "$(TARGET_NAME)";
444-
SWIFT_VERSION = 4.2;
446+
SWIFT_VERSION = 5.0;
445447
TARGETED_DEVICE_FAMILY = "1,2";
446448
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOSSnapshotTestCaseCarthageDemo.app/iOSSnapshotTestCaseCarthageDemo";
447449
};

0 commit comments

Comments
 (0)