Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

objective c - Combine two iOS apps into one

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...