如何从Xcode项目创建静态库? [英] How to create a static library from an Xcode project?

查看:108
本文介绍了如何从Xcode项目创建静态库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力解决问题。我有两个应用程序。我想将这两个应用程序链接/集成到我的第三个应用程序。我需要保持所有这三个应用程序类文件和其他资源文件独立。因为他们中的大多数都有相同的名字。我怎样才能做到这一点?我必须将它们转换为库并集成它们吗?如果是这样,怎么办?有没有其他方法可以做到这一点?..



我将这三个应用程序作为Xcode项目。我想在集成后只需要一个应用程序作为结果..



我在几个论坛中读到这可以使用静态库。你能否建议我从现有的Xcode项目中创建静态库的最佳方法?



任何帮助请...



谢谢..

解决方案

您可以使用XCode的重构功能重构您的代码并重命名您的类,
当然。


I struggling with a problem. I am having two apps. I want to link/integrate those two apps to my third app. I need to keep all these three apps class files and other resource files independent. Because most of them have the same name. How can I do this? I have to convert them to library and integrate them? If so, how to do that? Is there any other way to do it?..

I am having all these three apps as Xcode projects. I want only one app as the result after integrating..

I read in few forums that this is possible to do using static libraries. Can you suggest me the best way to create a static library from an existing Xcode project?

Any help pls..

Thanks..

解决方案

You could refactor your code and rename your classes, using XCode's refactoring feature of course.

这篇关于如何从Xcode项目创建静态库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆