Domanda

I have been working on a project for both native iOS and Android apps. Now that my parent projects are done, I need to run clones for them. These clones will use more or less the same code but with different languages, resources and possibly XIB files as well. I have been using GIT for code management and I google the best way to handle this and the suggested technique was with Forking which was no good because it started creating issues with different Package IDs in the projects. Now, you know the problem that I am facing. I am looking for expert opinion to handle this scenario.

È stato utile?

Soluzione

Don't know how about Android, but for iOS you can use targets and then set which files should be used by selected target. Each target may have its own Info.plist file, different graphic assets and more.

Start with duplicating an existing target:

duplicating Xcode target

You will notice Info-copy.plist file, which is a setting file for the new target. Then use a proper scheme to run your new target:

xcode schemes

If it's not there, go to "Manage schemes" and press "Autocreate schemes now"

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top