将两个 iOS 应用程序合二为一 [英] Combine two iOS apps into one

查看:29
本文介绍了将两个 iOS 应用程序合二为一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到过这样一种情况,即两家独立的公司希望将他们的 iOS 应用程序合并"在一起以形成一个应用程序(因此只需要下载一个应用程序商店).这些应用程序具有完全独立的代码库.两家公司正在寻求合作,但他们真的不希望彼此看到彼此的代码.

I have a situation where two separate companies wish to 'join' their iOS apps together to form a single app (so that only one App store download is required). The apps have entirely separate code-bases. The companies are looking to partner together but they don't really want one another seeing each others code.

对代码进行一定程度的摆弄是可以接受的.

A degree of fiddling with the code would be acceptable.

有什么方法可以打包"代码库或二进制文件,以便 app2 开发人员无需访问 app 1 代码库就可以将 app 1 合并到 app2 中?

Is there any way to 'package' the code-bases or binaries so that app 1 could be incorporated into app2 without the app2 developers having access to the app 1 code base?

谢谢

推荐答案

当然,将一个(或两个)应用程序制作成可以从另一个应用程序调用的库或框架(以实例化和打开 XIB 文件并查看控制器,它是其他"应用程序的父视图).

Sure, make one (or both) of the apps into libaries or frameworks that can be called into from the other (to instantiate and open a XIB file and view controller which is the parent view of the "other" app).

然后可以将源代码从一个部分分离到另一个部分.

Then the source code could be kept separate and distinct from one section to another.

但您还必须制定解决方案,以解决在两个应用程序中实现的任何应用程序委托 (UIApplicationDelegate) 方法的问题.祝你好运!

But you would also have to work out solutions for what to do with any app delegate (UIApplicationDelegate) methods that are implemented in both applications. Good luck with that!

这篇关于将两个 iOS 应用程序合二为一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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