我正在寻找使用 makefile 构建的 iO 库项目
我正在寻找一个简单的 iOS 库(和/或应用程序 - 最终两者都想要)示例(如数学库或其他),它有一个 makefile,我可以使用它作为模板来制作其他 makefile 并学习。当然是静态的(如果 iOS 支持的话也是动态的,这样我就可以有 2 个以上的应用程序共享通用代码)
有很多不完整和神秘的信息,但到目前为止我还没有找到任何简洁的“使用这些源文件”您以这种方式创建一个 makefile 来构建一个 iOS“胖”库,我可以导入到其他项目中。
这将在安装了 ios4 sdk 的 Mac 上进行。 从基本有效的东西开始总是很棒的。
我之前为 UNIX 和 Windows 以及其他设备创建了复杂的 makefile。
谢谢。
I am looking for a simple library ( and/or app - eventually want both ) example ( like a math library or whatever) for iOS which has a makefile for it that I can use as a template to make other makefiles from and learn. Static of course, (and dynamic if iOS supports it so I can have 2+ apps that share common code)
There is lots of incomplete and cryptic info out there but so far I havn't found any nice concise "with these source files" you create a makefile this way to build an iOS "fat" library I can import into other projects.
This would be on a Mac with the ios4 sdk installed.
It is always great to start with something that basically works.
I have created complex makefiles before for unix and windows and for other devices.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
第一个链接以图示方式逐步表示您所要求的过程,然后第二个链接包含一个包,允许程序员编译基于 make 文件的项目
点我
点我
The first link pictorially represents the process step by step that you've asked then the second link contains a package that allows a programmer to compile a make file based project
click me
click me
如果您想使用 make 文件构建静态库,并在每次构建 Xcode 项目时链接它,则可以在项目中的所有其他构建阶段之前添加一个“运行脚本”构建阶段,该阶段运行此 make 文件,然后将构建的库添加到链接阶段。如果你想要一个构建整个 iOS 项目的 make 文件,我认为这是不可能的(尽管你可以使用命令行来编译项目,而无需打开 Xcode)。
If you want to build a static library using a make file and link against it every time you build your Xcode project, you can add a "run script" build phase in your project before all the others, which runs this make file, and then add the built library to your linking phase. If you want a make file that builds the entire iOS project, I don't think it's posible (you can use the command line to compile the project without Xcode opened though).