soffes / SAMKeychain

Simple Objective-C wrapper for the keychain that works on Mac and iOS
MIT License
5.4k stars 956 forks source link

KeychainTests Failed! #146

Closed leizh007 closed 8 years ago

leizh007 commented 8 years ago

Xcode8 beta3, swift 3.0

In Keychiantests line 160

Test Suite 'All tests' started at 2016-08-01 22:59:34.901
Test Suite 'SAMKeychainTests-iOS.xctest' started at 2016-08-01 22:59:34.904
Test Suite 'KeychainTests' started at 2016-08-01 22:59:34.905
Test Case '-[SAMKeychainTests_iOS.KeychainTests testConvenienceMethods]' started.
2016-08-01 22:59:34.920784 xctest[4275:2785429] subsystem: com.apple.securityd, category: OSStatus, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2
/Users/leizh007/Downloads/SAMKeychain-master/Tests/KeychainTests.swift:157: error: -[SAMKeychainTests_iOS.KeychainTests testConvenienceMethods] : XCTAssertEqual failed: ("Optional("SSToolkitTestPassword")") is not equal to ("nil") - 
fatal error: unexpectedly found nil while unwrapping an Optional value
leizh007 commented 8 years ago

In Xcode7, it works fine. But in Xcode8 beta3, it cannot set password.

leizh007 commented 8 years ago

Fixed: answer. We should add Keychain Access Groups to the Entitlements file.