본문 바로가기 메뉴 바로가기

권말련의 게임 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

권말련의 게임 블로그

검색하기 폼
  • 분류 전체보기 (1323) N
    • 로스트아크 (574)
      • 대항해 (126)
      • 모험의 서 (75)
      • 모코코(대륙) (119)
      • 기억의 오르골 (18)
      • 업적 (27)
    • 게임 (458) N
      • 엘든링 (151)
      • 마비노기 모바일 (7) N
      • 오버워치2 (9)
      • 포켓몬고 (26)
      • 팰월드 (21)
      • 디아블로4 (43)
      • 마인크래프트 (4)
      • 몬스터 헌터 와일즈 (1)
      • 오딘 (22)
      • 아이온 클래식 (75)
      • 바람의 나라:연 (24)
      • AFK아레나 (45)
      • 배틀그라운드 (2)
      • RPG게임 (7)
      • 리니지TL (2)
      • 모바일게임 (17)
    • 모바일게임 쿠폰 (8)
    • IT (201)
      • iOS (67)
      • Android (38)
      • PHP + Mysql (7)
      • AWS+Window Server (5)
      • 블로그 (32)
    • 일상 (76)
      • 맛집 (8)
      • 운동 (15)
      • 여행 (4)
      • 리뷰 (9)
  • 방명록




티스토리 뷰

IT/iOS

64bit에서 컴파일시 objc_msgsend error

권말련 2014. 5. 15. 15:12
애플트리

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);


변경하니 컴파일 완료


참고 : https://developer.apple.com/Library/ios/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html#//apple_ref/doc/uid/TP40013501-CH3-SW1

반응형
그리드형
저작자표시 (새창열림)

'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
  • 카카오톡 공유하기
  • 네이버 블러그 공유하기
  • 페이스북 공유하기
  • 트위터 공유하기
  • 구글 플러스 공유하기
  • 카카오스토리 공유하기

'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
댓글
반응형
공지사항
최근에 올라온 글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바