Home > Software engineering >  Can a Swift xcode app call functions in another xcode app, both in same project?
Can a Swift xcode app call functions in another xcode app, both in same project?

Time:07-13

Can an xcode Swift app call functions in a 2nd xcode Swift app, or must 2nd be static lib only?

Why:
I need to provide functions to be called by a 3rd Swift app.
I have an existing swift app.
It will save development time to drop new functions into existing app, which 3rd app calls.

Otherwise must create and maintain static lib.

CodePudding user response:

As you probably already know, all the apps on the iPhone run in a sandbox in order to provide a high level of security. As far as I know, there are multiple ways to achieve this, but lots of them are too complicated to use for this.

Here are two ways to manage the communication between apps that may help you:

  1. Manage communication between apps through registered URL handlers. Click Target Membership Pane

  • Related