Mobile Application/iOS
[Xcode6] arm64에서 Build할때 Value 오류
Y freesia
2015. 3. 18. 16:44
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
반응형