swift - Referencing App Object Across Multiple Build Targets iOS -
i need make several versions of ios application each different target , name. of differences between applications in applications resources , not source code. trying share source code across versions possible.
my issue arises when try access application object in version not have same name original. instance, have 2 versions of application named userapp , userapp2 , following code references data store:
var user = userapp.user
when try run code in userapp2 target, throws error saying userapp undefined.
my question is: how can make code load proper application object depending on target running? solution can used across targets without need change code.
edit: userapp object xcdatamodel.
Comments
Post a Comment