본문 바로가기

iPhone & Cocoa

(51)
프로젝트 빌드시 ldr 12-bit displacement out of range 로 시작되는 오류 발생시 iOS Deployment Target 을 iOS 3.0 으로 설정하면 해결됨. 너무나 간단함....
cocos2d iPhone 샘플 프로젝트 빌드 사이트에서 다운로드받은 프로젝트를 빌드하면 다음과 같은 에러가 발생한다. (Xcode 3.2.3) #error CC_ENABLE_PROFILERS must be enabled. Edit ccConfig.h 빌드 에러가 발생하는 파일은 PerformanceNodeChildrenTest.m 이다. PerformanceNodeChildrenTest.h 와 PerformanceNodeChildrenTest.m 파일에서 _profilingTimer 변수 사용 부분을 #if CC_ENABLE_PROFILERS #endif 블럭으로 감싸주면 해결된다.
2D 애니메이션 프로젝트 - cocos2d 설치 1. 다운로드 cocos2d library for iPhone http://code.google.com/p/cocos2d-iphone/ 2010년 9월 15일 현재 0.99.4 stable version 0.99.5 beta version 2. 설치 (참조 : http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:lesson_1._install_test) 다운로드받은 파일의 압축을 푼다. 압축을 풀어낸 결과는 아래 그림과 같다. Xcode 프로젝트 파일인 cocos2d-iphone.xcodeproj 을 열어서 프로젝트를 구경해보고 빌드해 볼 수 있다. Xcode 버전이 3.2.3 이하(포함)인 경우만 지원하고 있으므로 유의해야 한다. 2-1. 템플릿 설치 프로..
Organizer 의 ScreenShots 파일이 저장되는 디렉토리 /Users/username/Library/Application Support/Developer/Shared/Xcode/Screenshots
아이폰에 할당된 IP Address 얻는 방법 참고 URL http://blog.zachwaugh.com/post/309927273/programmatically-retrieving-ip-address-of-iphone
Xcode 프로젝트 이름 변경하기 참고 URL : http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/ How to rename project in Xcode 3.x I thought this would be a simple thing to do, but apparently not. There’s no option to copy the state of the project as it is and continue working on it under the new name. The reason I need this is that I’m going through AAron Hillegass’s Cocoa Programming for Mac OS X, 3rd ed. and some of the p..
간혹 Code Sign 에 필요한 Provisioning 파일을 찾을 수 없다는 에러가 뜬다. 참고 URL : http://iphonesdkdev.blogspot.com/2009/01/codesign-error-valid-provisioning.html CodeSign error: a valid provisioning profile is required "CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2" This error will appear when you update your provisioning profile in iPhone SDK 2.2 or after the expiration of developer certificate..
아이템 개수 가져오기 // ResponseTr 의 헤더에서 데이터의 크기 가져오기 int nBodyLength = [[[[NSString alloc] initWithBytes:(*ResponseTr).Header.szBodyMessageLen length:4 encoding:NSASCIIStringEncoding] autorelease] intValue]; // Body 에 들어있는 아이템 개수 구하기 int nItemCount = (nBodyLength - sizeof((*ResponseTr).Body.szSearchValue)) / sizeof(MOBILO_2230_RESPONSE_BODY_ITEM); NSLog(@"Body Length = %d, Item Count = %d", nBodyLength, nItemCount);