Skip to content

Commit ffc5ade

Browse files
author
Evan Maloney
committed
Swift 4 updates
1 parent aa0707a commit ffc5ade

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Locksmith.xcodeproj/project.pbxproj

+9-9
Original file line numberDiff line numberDiff line change
@@ -412,11 +412,11 @@
412412
TargetAttributes = {
413413
0EC25C581BA385AA004191AF = {
414414
CreatedOnToolsVersion = 7.0;
415-
LastSwiftMigration = 0800;
415+
LastSwiftMigration = 0900;
416416
};
417417
0EC25C611BA385AB004191AF = {
418418
CreatedOnToolsVersion = 7.0;
419-
LastSwiftMigration = 0800;
419+
LastSwiftMigration = 0900;
420420
TestTargetID = E3DD3B331D84356500A59312;
421421
};
422422
0EC25C741BA385F6004191AF = {
@@ -430,7 +430,7 @@
430430
};
431431
E3DD3B331D84356500A59312 = {
432432
CreatedOnToolsVersion = 8.0;
433-
LastSwiftMigration = 0800;
433+
LastSwiftMigration = 0900;
434434
ProvisioningStyle = Automatic;
435435
SystemCapabilities = {
436436
com.apple.Keychain = {
@@ -662,7 +662,7 @@
662662
PRODUCT_BUNDLE_IDENTIFIER = "net.matthewpalmer.Locksmith-iOS";
663663
PRODUCT_NAME = Locksmith;
664664
SKIP_INSTALL = YES;
665-
SWIFT_VERSION = 3.0;
665+
SWIFT_VERSION = 4.0;
666666
};
667667
name = Debug;
668668
};
@@ -685,7 +685,7 @@
685685
PRODUCT_NAME = Locksmith;
686686
SKIP_INSTALL = YES;
687687
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
688-
SWIFT_VERSION = 3.0;
688+
SWIFT_VERSION = 4.0;
689689
};
690690
name = Release;
691691
};
@@ -700,7 +700,7 @@
700700
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
701701
PRODUCT_BUNDLE_IDENTIFIER = "net.matthewpalmer.Locksmith-iOSTests";
702702
PRODUCT_NAME = "$(TARGET_NAME)";
703-
SWIFT_VERSION = 3.0;
703+
SWIFT_VERSION = 4.0;
704704
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Test Host.app/Test Host";
705705
};
706706
name = Debug;
@@ -717,7 +717,7 @@
717717
PRODUCT_BUNDLE_IDENTIFIER = "net.matthewpalmer.Locksmith-iOSTests";
718718
PRODUCT_NAME = "$(TARGET_NAME)";
719719
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
720-
SWIFT_VERSION = 3.0;
720+
SWIFT_VERSION = 4.0;
721721
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Test Host.app/Test Host";
722722
};
723723
name = Release;
@@ -981,7 +981,7 @@
981981
PRODUCT_BUNDLE_IDENTIFIER = "net.matthewpalmer.Test-Host";
982982
PRODUCT_NAME = "$(TARGET_NAME)";
983983
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
984-
SWIFT_VERSION = 3.0;
984+
SWIFT_VERSION = 4.0;
985985
};
986986
name = Debug;
987987
};
@@ -1003,7 +1003,7 @@
10031003
PRODUCT_BUNDLE_IDENTIFIER = "net.matthewpalmer.Test-Host";
10041004
PRODUCT_NAME = "$(TARGET_NAME)";
10051005
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1006-
SWIFT_VERSION = 3.0;
1006+
SWIFT_VERSION = 4.0;
10071007
};
10081008
name = Release;
10091009
};

Tests/LocksmithTests/LocksmithTests.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class LocksmithTests: XCTestCase {
378378
])
379379

380380
let p = dict[String(kSecAttrPort)] as! CFNumber
381-
XCTAssertEqual(p as Int, port)
381+
XCTAssertEqual(p as! Int, port)
382382

383383
expect.fulfill()
384384

@@ -438,16 +438,16 @@ class LocksmithTests: XCTestCase {
438438
])
439439

440440
let cr = dict[String(kSecAttrCreator)] as! CFNumber
441-
XCTAssertEqual(cr as UInt, creator)
441+
XCTAssertEqual(cr as! UInt, creator)
442442

443443
let ty = dict[String(kSecAttrType)] as! CFNumber
444-
XCTAssertEqual(ty as UInt, type)
444+
XCTAssertEqual(ty as! UInt, type)
445445

446446
let inv = dict[String(kSecAttrIsInvisible)] as! CFBoolean
447-
XCTAssertEqual(inv as Bool, isInvisible)
447+
XCTAssertEqual(inv as! Bool, isInvisible)
448448

449449
let neg = dict[String(kSecAttrIsNegative)] as! CFBoolean
450-
XCTAssertEqual(neg as Bool, isNegative)
450+
XCTAssertEqual(neg as! Bool, isNegative)
451451

452452
let gen = dict[String(kSecAttrGeneric)]
453453
XCTAssertNil(gen)

0 commit comments

Comments
 (0)