Question

I would like to hand my application to another developer to assymilate in his iOS app. The goal is to have, in his app, a shortcut that opens my app directly - not just a link to the appstore.
The problem is my app has to remain compiled, since I don't want to hand over my source-code. Is this situation, of one compiled iOS app, encapsulated insind another iOS app, even possible?
Thanks in advance.

Was it helpful?

Solution

All code in an app bundle has to be staticly linked, so you would have to rewrite and compile your app as a linkable shared library.

OTHER TIPS

Your application can register a custom URL handler that will launch it whenever any application will follow that URL. It can be triggered from Safari but it can also be triggered from any other application.

Here's how you enable that feature in your app and handle incomming passed parameters etc.

What you're looking to do really isn't possible. Each app has it's own code structure and can't be embedded into another app (MainWindow.xib for example). Each app is also signed by the developers private key, so that's an obstacle there. You can't just hand him a binary of your app.

What you could do is potentially take your .XIBs and view controllers and give them to him to implement. This is easiest if there's no model that also has to be migrated over. Then he can present your views to take advantage of the logic built into your view controllers.

It's not a trivial amount of work and of questionable value. If you're not willing to share source code then none of the above is really going to work for you.

My advice would be as people above have mentioned and use a URL scheme in his app that refers to yours. Yes, your app would need to be installed, but then there's a clear and unambiguous separation between his work and yours...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top