iPhone Keychain Access 개발 - iPhone/개발 Tip2010. 9. 9. 11:41
GenericKeychain 1.1(http://developer.apple.com/library/ios/#samplecode/GenericKeychain/Listings/Classes_AppDelegate_h.html#//apple_ref/doc/uid/DTS40007797-Classes_AppDelegate_h-DontLinkElementID_3)
을 이용해서 KeyChain에 반영했었는데, 3.1.2에서는 문제가 없었는데 iOS 4.0이상에서 제대로 실행되지 않더군요.
검색해보니 위 링크처럼 1.2가 새로 나와서 적용했는데, 1.1이랑 코드가 거의 안바뀐거 같은데도 온갖 에러가 발생하더군요.
2-3일 고생하다가 http://useyourloaf.com/blog/tag/keychain 에서 방법을 찾았네요.
짜증~ ㅠㅠ
keychain에 등록 중 발생하는 에러코드
http://developer.apple.com/library/mac/#documentation/Security/Reference/keychainservices/Reference/reference.html
Result Codes
The most common result codes returned by Keychain Services are listed in the table below. The assigned error space for Keychain Services is discontinuous: –25240 through –25279 and –25290 through –25329. Keychain Item Services may also return noErr (0) or paramErr (–50), or CSSM result codes (see Common Security: CDSA and CSSM, version 2 (with corrigenda) from The Open Group (http://www.opengroup.org/security/cdsa.htm)).
Result Code Value Description
errSecSuccess 0 No error.
'개발 - iPhone > 개발 Tip' 카테고리의 다른 글
cocos2d - Isometric map tile position, detect edges (0) | 2010.09.28 |
---|---|
UIPinchGestureRecognizer 실시간 이미지 resize (0) | 2010.09.28 |
Setting cocos2D camera position using CCFollow (0) | 2010.09.05 |
NSZombieEnabled (0) | 2010.08.06 |
소스 코드를 웹페이지에 삽입할 때 유용한 사이트 (0) | 2010.07.26 |