-->

how to add one or more plugins to an existing app

2020-07-18 02:27发布

问题:

My company want to make an application which like a bookshelf can load more books when the application finished, they want the application to be able to load more plugins without destroying the already installed code: when the app has been purchased and downloaded from the app store, the user can buy plugins in the app store and install them into the app.

Can anyone tell me how this could be achieved? Thank you very much.

回答1:

Implementing A Plugin System in C or C++
Xcode & iOS - Create Plugins?
How can I combine multiple iPhone applications in to one application?
Objective-C Plugin Architecture Security (Mac, not iPhone)
Objective-C and designing a plugin mechanism

https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFPlugIns/CFPlugIns.html

You have to choose right platform for creating plugins and then you need to link installed plugins to correct app I don't think you'll be able to check that before installing plugins the app has to be installed

Second way will be using in-app purchase and downloading plugins to program data directory I think the second way is more usable and more valid, because in AppStore cannot be sold application which is not standalone, and depends on another app.