Reputation: 65
I have recently started work at a company where I am the sole developer taking over a very convoluted code base. I am currently working on some iOS apps, but the only directory I have contains only one .xcodeproj file and only one .plist file. To me this means that it is only one app. However, there are other files in a controllers directory that contains controllers for the other apps, but they are still in the directory for the one app that corresponds to the .xcodeproj file and the .plist file.
To me it seems that there is only one app in this directory that contains code for the other apps.
My question is, is it possible to have sub apps that are all organized into one .app directory? If so, how do I go about creating .plist files so they would launch?
Upvotes: 2
Views: 1132
Reputation: 45490
You can use a single project to share logic between multiple apps.
This concept in iOS
is called XCode Target
.
For example if you had a application that needs to have multiple version, you will add a target for lite version and a second one for pro version.
Since they share common logic , you wouldn't want to duplicate projects. Instead you will add a target with appropriate plist for each.
Android has similar feature called flavors.
Upvotes: 7