user843337
user843337

Reputation:

How to make a 'Pro' version of an Xcode project

I have just made an app and now I'm planning to make a 'pro' version of it, so I want to copy my Xcode project and rename it.

I was just wondering what the easiest way is to go about doing this. Obviously there are a lot of different references to the name throughout the project and I don't really want to spend ages searching through, updating them all.

Please can you suggest the easiest steps to take in order to copy 'App Basic' to 'App Pro'? Or is there a better/preferred method to create a 'pro' version of an app with subtle differences?

Thanks in advance!

Upvotes: 4

Views: 472

Answers (2)

hypercrypt
hypercrypt

Reputation: 15376

The best way to do this is to create a second target in the same Xcode project. You can then define two preprocessor macros (e.g.: APP_VERSION_LITE & APP_VERSION_PRO) and do compile time switching using #ifdef APP_VERSION_PRO etc.

In your app delegate you can define a string with your application name

//.pch
extern NSSting * const MyAppName

//appdelegate.m
#ifdef APP_VERSION_PRO
NSSting * const MyAppName = @"App Pro";
#else
NSSting * const MyAppName = @"App Lite";
#endif

You can also include files (including resources and classes) only in one of the two targets.

Upvotes: 4

Phillip
Phillip

Reputation: 4306

Well, when i have to release an update of an app, i usually copy the folder and paste it by changing its name.

You could act the same way, without losing any data but "upgrading" it to the "pro" version, by adding things to the app, changing its name etc.

This is the way i do it, i might be wrong (and i'm pretty sure i am lol), but you can try this way!

Upvotes: -2

Related Questions