2010년 3월 28일 일요일

iphone libxml2

0. 목적
iphone에서 xpath 사용해 보자.


1. 참고
1-1. http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html (wrapper)

2. 설정
1-2 링크의 내용처럼 libxml은 OS 기본내장이기때문에 따로 받아서 설치할 필요는 없고,
configuration 세팅만 해주면된다.

 2.1 header search Paths 에 링크추가
  -  /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/usr/include/libxml2 (device 용)
  - /usr/include/libxml2 (simulator 용)
 

2010년 3월 27일 토요일

link static library

0. 목적

dll 참조처럼 아이폰 OS에서 모듈참조하기

 

1. 참고

http://osmorphis.blogspot.com/2010/02/static-libraries-in-iphone-projects_08.html

http://blog.stormyprods.com/2008/11/using-static-libraries-with-iphone-sdk.html

 

2. 테스트

테스트를 위해 프로젝트를 2개 만듬

- 2-0. library(static library project) 와 test(view-based application,library 테스트프로젝트)로 명명

- 2-1. device 와 simulator 파일을 구분하기 위해 product name 을 수정 (그림1)

- 2-2. library build(device & simulator)

- 2-3. test project 에 ".a" 파일 추가(2-2 의 빌드파일) (그림2)

- 2-4. test project 의 header search paths 추가 (library 의 header 파일이 있는 경로로 수정) (그림3)

- 2-5. test project 빌드

 

3. 결과물

 

 

 

 

(그림1)

 

(그림2)

 

(그림3)