꿈꾸는 개발자
[Xcode6] arm64에서 Build할때 Value 오류 본문
32bit
long* value = (long*) [characteristic.value bytes];//-> (long *) value = 0x12345678
64bit
long* value = (long*) [characteristic.value bytes];
//-> (long *) value = 0x0000000123456780
각각 빌드하였을때 값이 달라진 경우
#ifdef __LP64__
NSLog(@"64-bit");
int* value = (int*) [characteristic.value bytes];
#else
NSLog(@"32-bit");
long* value = (long*) [characteristic.value bytes];
#endif
으로 수정해준다.
참조: http://iphonedevwiki.net/index.php/Updating_extensions_for_iOS_7
반응형
'Mobile Application > iOS' 카테고리의 다른 글
error: sdk does not contain 'libarclite' at the path (0) | 2024.01.25 |
---|---|
Cocoa Pod 정리 (0) | 2024.01.24 |
Cocoa (touch) Framework (0) | 2022.08.26 |
[Xcode] NSLog Debug모드에서만 출력 (한번만 명령어) (0) | 2015.05.11 |
[iOS] swipe로 tableViewcell Delete할때 죽는 문제 (UITableViewCellEditingStyleDelete) (0) | 2015.03.12 |