Contents

조회 수 2001 댓글 0
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
카테고리(Category) 확장 메소드를 못찾는 경우

오픈 소스나 3rd party 프레임워크를 가지고 왔는데, 빌드시 오류도 없고 소스도 잘 가지고 있는 카테고리의 경우 실제 실행시 해당 확장한 카테고리의 메소드를 못 찾는 경우가 있다.

해결방법은,
TARGETS >  앱명 > Build Settings > Linking “Other Linker Flags” 에 “-ObjC” 추가해 준다.

(ex)
xxx.m에서 사용한  #import "NSMutableArray+aaa.h”의 객체 queue가 있는 경우, 얘의 메소드 enqueue를 못 찾고 죽는경우

<오류스타일>
2014-04-15 19:28:23.093 BookPlayer[3352:60b] -[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x17d46270
2014-04-15 19:28:23.098 BookPlayer[3352:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x17d46270'
*** First throw call stack:
(0x2ead4fd3 0x39281ccf 0x2ead8967 0x2ead7253 0x2ea267f8 0x84831 0x80fb1 0x7eeb7 0x31326057 0x31325ff7 0x31325fd1 0x31311737 0x31325a4f 0x31325721 0x313206eb 0x312f58ed 0x312f3f97 0x2eaa025b 0x2ea9f72b 0x2ea9df1f 0x2ea08f4f 0x2ea08d33 0x3390d663 0x3135416d 0x740c5 0x3978eab7)
libc++abi.dylib: terminating with uncaught exception of type NSException

otherlink.jpg




[참고] http://stackoverflow.com/questions/10442653/unrecognized-selector-calling-category-method-in-static-ios-library
Your 3rd party framework is probable using a category on a existing (apple) class. But to load/find the category you need to add the -ObjC flag in the build settings under Other Linker Flags
[출처] http://funnyrella.blogspot.kr/2014/04/104.html

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
273 Algorithm Polynomial time 이란? ㅋㅋ hooni 2013.04.23 22692
272 Database [mysql] 루트 암호 초기화 hooni 2013.04.23 11046
271 System/OS [owasp] 10대 웹어플리케이션 보안 취약 file hooni 2013.04.23 15908
270 System/OS 라우팅 경로 결정 영향 요소 ㅋㅋ file hooni 2013.04.23 15852
269 System/OS OSI (Open Systems Interconnection) 개방형 시스템간 상호 접속 file hooni 2013.04.23 10787
268 System/OS 네트워크별 MTU(최대 전송 단위) hooni 2013.04.23 17643
267 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 10951
266 Algorithm [security] 블럭 암호에 대해서.. hooni 2013.04.23 17121
265 System/OS [router] 시스코 라우터 명령어 모드.. hooni 2013.04.23 12946
264 Develop [c++] RSA Sample 4 CPP hooni 2013.04.23 9183
263 Develop [c] 최대공약수, 최소공배수, 서로소 구하기 (펌) hooni 2013.04.23 11160
262 Algorithm 스터디 자료, 암호화에 대해서.. 나중에 볼 ppt.. file hooni 2013.04.23 13374
Board Pagination Prev 1 ... 71 72 73 74 75 76 77 78 79 80 ... 98 Next
/ 98