This contents written in Korean. If you want to English translation. Let me know.
1. 먼저 static library project를 만든다. (참조 URL http://www.icodeblog.com/2011/04/07/creating-static-libraries-for-ios/ )
2. 주의할 점은 static library project 에서 armv6, armv7 으로 프로젝트를 빌드한다.
3. Simluator(i386)와 iOS Device(armv6, armv7) Build 하면 build 된 폴더에, someLibrary.a 들이 있다.
4. 그 라이브러리들을 복사해서 별도의 폴더에 넣고.
5. 아래의 명령어로 fat library를 만들어서
lipo libICodeMathUtils.a -arch i386 libICodeMathUtilsSimulator.a -create -output libICodeMath.a
6. 해당 library와 header 파일을 library를 사용할 프로젝트에 복사해서 넣으면 끝.
"iPhone, xcode, objective-c" 카테고리의 다른 글
댓글을 달아 주세요