Combine two iOS apps into one

廉价感情. 提交于 2019-11-28 05:36:02

问题


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.

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?

Thanks


回答1:


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.

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!



来源:https://stackoverflow.com/questions/10928677/combine-two-ios-apps-into-one

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!