Adi
Adi

Reputation: 341

Reference files from one project to another in Xcode

I have an iOS app which is branded for different clients. This means that the Base code is the same for most of the clients, but the graphics are different and some custom code.

What I would like to do is to keep the Base code in one project, and for each client create another project with custom graphics and code.

I think such a thing would be simpler with Java and Eclipse, but is it possible to do this in Xcode without creating a framework for the Base code?

Upvotes: 1

Views: 1544

Answers (2)

Phillip Mills
Phillip Mills

Reputation: 31016

When I've done something like this, I've used "targets" within a single project. For each target I define which files are compiled/copied.

To keep things organized, I put target-specific files in their own directories on disk and create matching groups in the project.

Upvotes: 3

Abizern
Abizern

Reputation: 150615

You could use a workspace which has different targets for different versions of your app.

That way you can include the base code in all targets, and the customised code and assets to each specific target.

Upvotes: 1

Related Questions