Contents

조회 수 2107 댓글 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

?

  1. [iOS] Xcode 불필요한 캐시 삭제하기

    Date2021.10.12 CategoryDevelop Byhooni Views1966
    Read More
  2. [ios] Objective-C 에서 자주 사용하는 수학 함수와 유용한 Define

    Date2014.08.08 CategoryDevelop Byhooni Views1985
    Read More
  3. [iOS] 시뮬레이터에 푸시 알림을 보내는 방법

    Date2021.10.13 CategoryDevelop Byhooni Views1995
    Read More
  4. [android] 가속도 센서를 이용한 흔듦(Shake) 감지

    Date2014.11.04 CategoryDevelop Byhooni Views1997
    Read More
  5. [swift] UIView에서 subview 찾기

    Date2022.12.09 CategoryDevelop Byhooni Views2021
    Read More
  6. [ios] 웹뷰 history.back() ㅋㄷ

    Date2016.06.27 CategoryDevelop Byhooni Views2024
    Read More
  7. 맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen)

    Date2015.07.21 CategorySystem/OS Byhooni Views2031
    Read More
  8. 영어. 반드시 외워야 할 단어

    Date2016.07.07 CategoryEtc Byhooni Views2068
    Read More
  9. [c#] mfc 기반의 웹서비스 서버/클라이언트 샘플과 예제 소스

    Date2013.04.23 CategoryDevelop Byhooni Views2073
    Read More
  10. iptime 공유기 해킹 기술문서

    Date2015.01.01 CategorySystem/OS Byhooni Views2080
    Read More
  11. [c#] MS IE(Internet Explorer) 툴바 버튼 예제 2003/2005 두가지 버전

    Date2013.04.23 CategoryDevelop Byhooni Views2090
    Read More
  12. [ios] 카테고리 확장 메소드를 찾지 못하는 경우

    Date2014.08.08 CategoryDevelop Byhooni Views2107
    Read More
Board Pagination Prev 1 ... 14 15 16 17 18 19 20 21 22 23 ... 98 Next
/ 98