Welcome to OStack Knowledge Sharing 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 Answer

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...