I'm working in a project for two different companies that has the exact same project, differing only visually, but sharing all the backend code.
Is it possible to create, let's say, a target with a different icon, environment variables, assets catalog, bundle ID, etc, and use the same base for both apps?
Or is it a better approach to create a framework and duplicate the projects, then use the frameworks?
-
Yes, it possibleSPatel– SPatel2018年01月05日 13:15:20 +00:00Commented Jan 5, 2018 at 13:15
-
With multi targetSPatel– SPatel2018年01月05日 13:15:59 +00:00Commented Jan 5, 2018 at 13:15
-
appcoda.com/using-xcode-targetsSPatel– SPatel2018年01月05日 13:19:00 +00:00Commented Jan 5, 2018 at 13:19
1 Answer 1
Create a target with different icon , bundle Id and same code is better as creating a framework will lead to a problem if you are using pods or other third party frameworks as with the second approcah nested frameworks are not allowed in ios apps