VIMNetworking authenticate fail
Issue Summary
during the authenticate process crash at -> *** Assertion failure in -[VIMSession authenticationCompleteWithAccount:error:key:completionBlock:]
Reproduction Steps
Follow the authentication process, when jump back from safari app crash. It seems the user account cannot save in keychain.
Expected Behaviour
User info should be able to store in keychain properly.
Actual Behaviour
This process cannot pass the assert in the method method above. NSAssert(success, @"Unable to save account for key: %@", key);
The thing I couldn't understand is it worked a week ago, however I can't get it work any more.
Received the same error during authentication process. 'Unable to save account for key: ClientCredentialsAccountKey'
i have the same issue here and crash my app
2016-11-25 09:14:24.876 VimeoAPIVerify[14409:2638848] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to save account for key: ClientCredentialsAccountKey' *** First throw call stack: ( 0 CoreFoundation 0x000000010d6f634b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010d15721e objc_exception_throw + 48 2 CoreFoundation 0x000000010d6fa442 +[NSException raise:format:arguments:] + 98 3 Foundation 0x000000010c980e4d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195 4 VimeoAPIVerify 0x000000010bce3762 -[VIMSession authenticationCompleteWithAccount:error:key:completionBlock:] + 1762 5 VimeoAPIVerify 0x000000010bce3df8 __53-[VIMSession authenticateWithClientCredentialsGrant:]_block_invoke + 136 6 VimeoAPIVerify 0x000000010bcc1e92 __68-[VIMAuthenticator authenticateWithPath:parameters:completionBlock:]_block_invoke + 898 7 VimeoAPIVerify 0x000000010bcdab76 __72-[VIMRequestOperationManager requestDescriptor:handler:completionBlock:]_block_invoke_3.166 + 262 8 VimeoAPIVerify 0x000000010bce16c5 +[VIMServerResponseMapper responseFromJSON:operation:completionBlock:] + 4693 9 VimeoAPIVerify 0x000000010bcdaa3a __72-[VIMRequestOperationManager requestDescriptor:handler:completionBlock:]_block_invoke_2.165 + 218 10 libdispatch.dylib 0x0000000111674980 _dispatch_call_block_and_release + 12 11 libdispatch.dylib 0x000000011169e0cd _dispatch_client_callout + 8 12 libdispatch.dylib 0x000000011167be6b _dispatch_queue_serial_drain + 236 13 libdispatch.dylib 0x000000011167cb9f _dispatch_queue_invoke + 1073 14 libdispatch.dylib 0x000000011167d07f _dispatch_queue_override_invoke + 683 15 libdispatch.dylib 0x000000011167f3b7 _dispatch_root_queue_drain + 720 16 libdispatch.dylib 0x000000011167f08b _dispatch_worker_thread3 + 123 17 libsystem_pthread.dylib 0x0000000111a4d736 _pthread_wqthread + 1299 18 libsystem_pthread.dylib 0x0000000111a4d211 start_wqthread + 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException
I found this problem is on simulator(I'm using iOS10.1), and it works fine on device(iPhone6 plus, with 10.1)
# Found a temporary solution - create an access token on your Vimeo App used for Api calls (developer.vimeo.com) if you don't have one already
use the method in this stackoverflow.com question (that manually sets the access token) - http://stackoverflow.com/questions/37307770/using-vimnetworking-to-call-vimeo-apis-but-the-files-of-the-vimvideo-objects-a
then make sure you enable Keychain Sharing in your Xcode's Project settings/configuration under the capabilities tab