开发者

How to compile multiple objective C files into one library?

开发者 https://www.devze.com 2023-03-26 15:34 出处:网络
Is it possible to compile multiple objective C (.m) files into one .a libra开发者_JAVA技巧ry? The resulting code would be used in iPhone apps via XCode.

Is it possible to compile multiple objective C (.m) files into one .a libra开发者_JAVA技巧ry? The resulting code would be used in iPhone apps via XCode.

If yes, do you have any links to a tutorial, or can you paste a Makefile?


You do not need a tutorial. Just start a new project, select iOS / Framework & Library / Cocoa Touch Static Library and start adding a files. That is it. Compiled lib will have all the files in place. Provide headers to consumers for all included files so they will know what's inside. It is pretty simple, let me know if you need an additional clarification.

0

精彩评论

暂无评论...
验证码 换一张
取 消