64bit에서 컴파일시 objc_msgsend error
아이폰5s는 64bit다.
이번에 xcode 5.1에서 64bit 기종에 대한 권고사항이 있다. 그 중에서 objc_msgSend를 사용하는 경우 기존에 쓰던 방식을 수정해 주어야 한다. 그렇지 않으면 crash
objc_msgSend(m_target, m_selector, (NSMutableDictionary*)info, receive, data, index);
를 사용하여 crash가 발생하였다
문제해결 소스
((void(*)(id, SEL, id, id, id, id))objc_msgSend)(m_target, m_selector, (NSMutableDictionary*)info, receive, data,index);
변경하니 컴파일 완료
반응형
'IT > iOS' 카테고리의 다른 글
json 데이터에서 key, object 추출하기 (0) | 2014.08.01 |
---|---|
NSMutableArray shuffle (배열 랜덤으로 섞기) (0) | 2014.07.23 |
tableview sectionheader 고정 막기 (0) | 2014.07.22 |
Current View get subview (0) | 2014.06.03 |
[[NSUserDefaults standardUserDefaults] dictionaryRepresentation].allKeys (0) | 2014.03.04 |
iOS random integer (0) | 2014.02.05 |
iOS 7 UI Difference between Simulator and real Device (0) | 2014.02.05 |
navigation bar title color (0) | 2014.02.04 |