2016-10-13 22 views
1

運行這段代碼境界在Swift3.0意想不到的狀態代碼:-34018

SyncUser.authenticate(with: Credential.usernamePassword(username: username, password: password, actions: [.useExistingAccount]), server: Constants.syncAuthURL) { (user, error) in } 

返回-34018錯誤代碼

libc++abi.dylib: terminating with uncaught exception of type realm::keychain::KeychainAccessException: Keychain returned unexpected status code: -34018 

斷點

_dispatch_once(dispatch_once_t *predicate, 
    DISPATCH_NOESCAPE dispatch_block_t block){ 
if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) { 
    dispatch_once(predicate, block); 
} else { 
    dispatch_compiler_barrier(); 
} 
DISPATCH_COMPILER_CAN_ASSUME(*predicate == ~0l);} 

THX

+0

請看[ask]和[mcve]。 – Mat

回答