Skip to content

Commit 86fa70c

Browse files
authored
DEVEX-739 iOS 12 Preperation (#859)
* Updated project for iOS 12 / Xcode 10. * Updated the keychain test. * Use pods for OCMock instead of frameworks for compatibility.
1 parent b76ccc1 commit 86fa70c

File tree

82 files changed

+117
-2450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+117
-2450
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

Branch-SDK-Tests/Branch-SDK-Tests/BNCCrashlyticsWrapper.Test.m renamed to Branch-SDK-Tests/BNCCrashlyticsWrapper.Test.m

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Branch-SDK-Tests/Branch-SDK-Tests/BNCKeyChain.Test.m renamed to Branch-SDK-Tests/BNCKeyChain.Test.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ - (void)testKeyChain {
2222
NSString *value = nil;
2323
NSArray *array = nil;
2424
NSString*const kServiceName = @"Service";
25-
double systemVersion = [UIDevice currentDevice].systemVersion.doubleValue;
2625

2726
// Remove and validate gone:
2827

2928
error = [BNCKeyChain removeValuesForService:nil key:nil];
30-
if (systemVersion >= 10.0 && systemVersion < 11.0)
31-
{ XCTAssertTrue(error == nil || error.code == -34018); }
32-
else
33-
{ XCTAssertTrue(error == nil); }
29+
// Error: 0xFFFF7B1E -34018 A required entitlement isn't present.
30+
// This happens when the unit test bundle isn't code signed.
31+
XCTAssertTrue(error == nil || error.code == -34018);
3432

3533
array = [BNCKeyChain retieveAllValuesWithError:&error];
3634
XCTAssertTrue(array == nil && error == errSecSuccess);
File renamed without changes.

0 commit comments

Comments
 (0)