2013-06-10 2 views
0

Card.io SDK를 사용하여 신용 카드를 스캔 한 후 내 iOS Phonegap 앱이 다운됩니다.Card.io에서 신용 카드 스캔 후 iOS Phonegap 앱이 다운 됨

카드가 스캔을하고 숫자가 겹쳐진 카드를 보여주는 화면으로 진행합니다. 반환 (찾을 수 없음 : + displayStringForCardType CardIOPGPlugin.m 파일 (A Card.io 폰갭 플러그인)이 엑스 코드되도록 만든다 "클래스 방식의 라인이 있습니다

[CardIOCreditCardInfo displayStringForCardType:]: unrecognized selector sent to class   0x271c88 
2013-06-09 23:33:37.767 Cardio_HolaWorld[49544:907] *** Terminating app due to uncaught  exception 'NSInvalidArgumentException', reason: '+[CardIOCreditCardInfo  displayStringForCardType:]: unrecognized selector sent to class 0x271c88' 
*** First throw call stack: 
(0x331312a3 0x3ae5997f 0x33134ca3 0x33133531 0x3308af68 0xb6479 0x13a5e7 0x350240c5  0x3502414d 0x350240c5 0x35024077 0x35024055 0x3502390b 0x35023e01 0x34f4c5f1 0x34f39801  0x34f3911b 0x36c515a3 0x36c511d3 0x33106173 0x33106117 0x33104f99 0x33077ebd 0x33077d49  0x36c502eb 0x34f8d301 0xb4f5f 0xb4f20) 
libc++abi.dylib: terminate called throwing an exception 
(lldb) 

: 응용 프로그램 충돌에서 콘솔에서이 오류가 발생합니다 'ID') "에 기본값을 입력 : 나는 폰갭 2.7, 아이폰 OS 6.1.3, 엑스 코드 4.6.2, 아이폰 4S 장치에 OS X 10.8.3로 짓고 있어요

[CardIOCreditCardInfo displayStringForCardType:info.cardType], @"card_type", 

.

+0

고마워요, 폴. 프로젝트의 GitHub 레포에서 문제를 만들었습니다. (https://github.com/paypal/PayPal-iOS-SDK-PhoneGap/issues/1). – Brent

+0

죄송합니다. 잘못 읽고 PayPal iOS PhoneGap SDK repo에 문제를 제기했습니다. 거기에 그것을 닫습니다. 우리 (card.io 팀)는이 문제를 조사 할 것입니다. – Brent

+0

@Brent 참고로 Card.io Phonegap 플러그인의 JS 파일이 현재의 repo에서이 파일로 변경되었습니다. 그것은 거의 작동하지만 만료 날짜를 입력 한 후 완료하면 완료 시점에 실패 : https://github.com/lumierephoto/phonegap-plugins/blob/master/iOS/card.io/CardIOPGPlugin.js – Paul

답변

2

@ 폴을 그냥

[CardIOCreditCardInfo displayStringForCardType:info.cardType usingLanguageOrLocale:[[NSLocale currentLocale] localeIdentifier]] 

[CardIOCreditCardInfo displayStringForCardType:info.cardType] 

에서 라인 (101)에 CardIOPGPlugin.m 파일을 수정 최신 card.io의 SDK를 사용하는 경우는 도움이되기를 바랍니다.

+0

그게 효과가! 도와 주셔서 감사합니다. 예, 최신 3.1.1을 사용하고 있습니다. – Paul