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)

 

 

 

 

댓글 없음:

댓글 쓰기